diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 13:55:25 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 13:55:25 -0800 |
commit | 3b91f4c117003a9f42717fe88257b6025790169e (patch) | |
tree | e4e6af5c4151179113d084c99d480a794c1831aa /rdoff | |
parent | 51222ab69e7ac1854587321442638620aa4829ba (diff) | |
download | nasm-3b91f4c117003a9f42717fe88257b6025790169e.tar.gz |
malloc: handle potential infinite loop in nasm_alloc_failed()
It is possible on memory exhaustion that nasm_fatal() might cause
another allocation error, thus calling nasm_alloc_failed() again. If
we find us in nasm_alloc_failed() for a second time, try to get a
message out and then call abort().
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'rdoff')
-rw-r--r-- | rdoff/ldrdf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c index dd80d70e..49729b4f 100644 --- a/rdoff/ldrdf.c +++ b/rdoff/ldrdf.c @@ -126,9 +126,6 @@ char *generic_rec_file = NULL; /* module name to be added at the beginning of output file */ char *modname_specified = NULL; -/* error file */ -static FILE *error_file; - /* the header of the output file, built up stage by stage */ rdf_headerbuf *newheader = NULL; |