We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb91175 commit 662f512Copy full SHA for 662f512
src/detection/terminalshell/terminalshell.c
@@ -87,7 +87,7 @@ static bool getShellVersionFish(FFstrbuf* exe, FFstrbuf* version)
87
return false;
88
89
//fish, version 4.0.2-1 (Built by MSYS2 project) // version can be localized if LC_ALL is set
90
- if (!ffStrbufStartsWithS(version, "fish, ")) return false;
+ if (version->length < strlen("fish, v") || !ffStrbufStartsWithS(version, "fish")) return false;
91
uint32_t index = ffStrbufNextIndexC(version, strlen("fish, "), ' ');
92
ffStrbufSubstrAfter(version, index);
93
ffStrbufSubstrBeforeFirstC(version, ' ');
0 commit comments