mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-24 19:00:23 +08:00
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:
parent
bd628dedea
commit
6f05b8008c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user