From: nasm-bot f. C. G. <gor...@gm...> - 2015-07-21 22:18:30
|
Commit-ID: 6f05b8008c883e9898c1582a72b5b96db940943c Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=6f05b8008c883e9898c1582a72b5b96db940943c Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Tue, 21 Jul 2015 22:51:34 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Tue, 21 Jul 2015 22:51:34 +0300 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 <kyl...@gm...> Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outmac32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outmac32.c b/output/outmac32.c index 0cd06ef..0ed88c9 100644 --- a/output/outmac32.c +++ b/output/outmac32.c @@ -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; |