[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1-byte buffer underflow in flex.
From: |
John |
Subject: |
Re: 1-byte buffer underflow in flex. |
Date: |
Mon, 21 Apr 2003 21:09:18 -0400 (EDT) |
> There is a 1-byte buffer underflow in yy_scan_bytes() due to its
> use of a mix of signed/unsigned integers to track buffer sizes. If
> sent a 'len' parameter of 4294967295, yy_scan_bytes() will write
> YY_END_OF_BUFFER_CHAR to the byte preceeding the 'buf' storage area.A
I guess we could change it to size_t. How did you manage to pass
4294967295 as an int without your compiler complaining?
$ gcc test.c
test.c: In function `main':
test.c:13: warning: decimal constant is so large that it is unsigned