output: outmacho32 -- Fix stack overwrite

The size of address migh be up to 8 bytes here
so allocate enough stack space.

http://bugzilla.nasm.us/show_bug.cgi?id=3392317

Reported-by: Kyle Brodie <kylecbrodie@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2015-07-21 22:51:34 +03:00
parent bd628dedea
commit 6f05b8008c

View File

@ -373,7 +373,7 @@ static void macho_output(int32_t secto, const void *data,
{
struct section *s, *sbss;
int32_t addr;
uint8_t mydata[4], *p;
uint8_t mydata[8], *p;
if (wrt != NO_SEG) {
wrt = NO_SEG;