westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.56k stars 533 forks source link

yy_scan_string() function string size using int #664

Open fxs0126 opened 1 month ago

fxs0126 commented 1 month ago

a string size is greater than 4G;

fxs0126 commented 1 month ago

YY_BUFFER_STATE yy_scan_bytes( yyconst char* yybytes, int _yybytes_len ), argu _yybytes_len is int type, not size_t . It can not support 4G string.