Files
rgbds/src
JL2210 5863cd10b8 Fix possible null pointer dereference
It's possible that if the FILE passed to yy_create_buffer is at the
end-of file, there may be a null pointer dereference.

This should hopefully fix that.

Found with clang-tools' scan-build:

src/asm/lexer.c:281:25: warning: Array access (via field 'pBuffer')
 results in a null pointer dereference
        pBuffer->pBuffer[size] = 0;
                 ~~~~~~~       ^
1 warning generated.

Signed-off-by: JL2210 <larrowe.semaj11@gmail.com>
2020-04-08 17:30:43 -04:00
..
2020-04-08 17:30:43 -04:00
2020-04-07 14:48:30 +10:00
2020-04-08 00:44:41 +02:00
2020-03-26 23:11:01 +01:00
2020-03-15 15:23:39 +01:00
2020-02-10 03:25:03 +01:00