westes / flex

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

fix: Correct fullspeed table size. #630

Closed Mightyjo closed 5 months ago

Mightyjo commented 5 months ago

Correct fullspeed table size computation from 'tblend + numecs + 1' to 'tblend + 2 + 1' to avoid allocating extra space that is never initialized.

Add temporary breadcrumbs to lex.yy.c to aid in checking generated scanners.

This passes the Flex test suite. Requesting community help to check additional -CF -8 scanners for unforeseen impacts.

Refs: #628