fix: fix underflow in tabcompletion module

This commit is contained in:
2026-06-18 12:12:51 +02:00
parent 580a95348a
commit 2ddb704582
+4
View File
@@ -16,6 +16,10 @@
bool is_executable(const char* path) { bool is_executable(const char* path) {
size_t len = montauk::slen(path); size_t len = montauk::slen(path);
if (len < 4) {
return false;
}
if (path[len - 1] == 'f' && if (path[len - 1] == 'f' &&
path[len - 2] == 'l' && path[len - 2] == 'l' &&
path[len - 3] == 'e' && path[len - 3] == 'e' &&