-
Notifications
You must be signed in to change notification settings - Fork 563
Open
Description
AddressSanitizer detect a global buffer overflow in all our scanners (five different ones) when compiled with the -CF -8
options and fed with a two-byte input of 0x00 0xFF.
An example of one of the simpler scanners is https://github.com/igraph/igraph/blob/58e01aa8594b98c198118b507f29186854cdbc3b/src/io/ncol-lexer.l
The crash happens on the first line within a for loop like this:
for ( yy_c = YY_SC_TO_UI(*yy_cp);
(yy_trans_info = &yy_current_state[yy_c])->
yy_verify == yy_c;
yy_c = YY_SC_TO_UI(*++yy_cp) )
yy_current_state += yy_trans_info->yy_nxt;
}
Before investigating further, and putting in the time to produce a minimal example, I wanted to ask if similar issues are known.
Metadata
Metadata
Assignees
Labels
No labels