-/* $OpenBSD: i386_nlist.c,v 1.4 2015/10/16 16:54:38 tobias Exp $ */
+/* $OpenBSD: i386_nlist.c,v 1.5 2015/10/19 19:22:32 krw Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
/* Make sure it's not too big to mmap */
if (SIZE_MAX - ehdr.e_shoff < shdr_size ||
- S_ISREG(st.st_mode) && ehdr.e_shoff + shdr_size > st.st_size) {
+ (S_ISREG(st.st_mode) && ehdr.e_shoff + shdr_size > st.st_size)) {
errno = EFBIG;
return (-1);
}
/* Check for files too large to mmap. */
if (SIZE_MAX - symstrsize < symstroff ||
- S_ISREG(st.st_mode) && symstrsize + symstroff > st.st_size) {
+ (S_ISREG(st.st_mode) && symstrsize + symstroff > st.st_size)) {
errno = EFBIG;
return (-1);
}
}
}
}
-elf_done:
if (usemalloc)
free(strtab);
else