Skip to content

Commit 7d457f8

Browse files
committed
[CID 16206] MCKill::lookup(): Remove incorrect semicolon.
The semicolon caused the line: return signal_table[size].which to fall out of the `while` looping, causing a possible buffer overrun due to unsigned arithmetic underflow. Coverity-ID: 16206 Coverity-ID: 16963
1 parent 6d2ceee commit 7d457f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/cmdsf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ int4 MCKill::lookup(MCStringRef s)
28062806
{
28072807
uint2 size = ELEMENTS(signal_table);
28082808
while(size--)
2809-
if (MCStringIsEqualToCString(s, signal_table[size].token, kMCCompareCaseless));
2809+
if (MCStringIsEqualToCString(s, signal_table[size].token, kMCCompareCaseless))
28102810
return signal_table[size].which;
28112811
return SIGTERM;
28122812
}

0 commit comments

Comments
 (0)