summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-12 09:31:19 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-12 09:31:19 -0700
commit7174c5812e3d9f8d32dabdd612487231403e20df (patch)
tree5ee12c0f97c14ad1db4ce9689cb4a2d4b9b02f3b
parentc751e86145aec99b2212321903146723e75af22a (diff)
downloadnasm-7174c5812e3d9f8d32dabdd612487231403e20df.tar.gz
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.
-rw-r--r--listing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listing.c b/listing.c
index 30e1af47..c71c53d4 100644
--- a/listing.c
+++ b/listing.c
@@ -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';