Fix overflow in listing.c (BR 1991797)

Fix a buffer overflow in listing.c (BR 1991797).

Putting this on the nasm-2.03.x branch as a potential candidate for a
patch release.
This commit is contained in:
H. Peter Anvin 2008-06-12 09:31:19 -07:00
parent c751e86145
commit 7174c5812e

View file

@ -220,7 +220,7 @@ static void list_output(int32_t offset, const void *data,
{
uint64_t d = *(int64_t *)data;
char q[19];
uint8_t p[4], *r = p;
uint8_t p[8], *r = p;
q[0] = '(';
q[17] = ')';
q[18] = '\0';