[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flex yylength can overflow on long input ?
yylength is a long int, therefore until you reach 2^32 or so, it'll do
just fine and dandy. I never got there, but it matched about half a MB for
me. I thing It's limited to free memory or something like that.
Shachar.
PS - if you want to match extremely long text you can use lex to match
short ones, and use yacc to operate on them (like concatenating them)
On Mon, 19 Jan 1998, Peter L. Peres wrote:
>
> Has anyone got data on Linux flex's behavior when finding a pattern that
> matches extremely long text ? Core dumps ? smoke ? What is the value of
> yylength in this case ?
>
> TIA,
> Peter
>
>
Shachar Tal
------------
Technion, Faculty of Architecture system administrator
email: shachar@vipe.technion.ac.il, shachar@arc.technion.ac.il
KeyID 0481FEF1 fingerprint = 52 1B 97 6A F2 77 AE C6 64 B6 5A 5E 14 28 8E 7E