Page MenuHomeFreeBSD

D32648.diff
No OneTemporary

D32648.diff

diff --git a/contrib/elftoolchain/elfcopy/main.c b/contrib/elftoolchain/elfcopy/main.c
--- a/contrib/elftoolchain/elfcopy/main.c
+++ b/contrib/elftoolchain/elfcopy/main.c
@@ -738,6 +738,8 @@
if ((ecp->ein = elf_begin(ifd, ELF_C_READ, NULL)) == NULL) {
cleanup_tempfile(tempfile);
+ if (fstat(ifd, &sb) == 0 && sb.st_size == 0)
+ errx(EXIT_FAILURE, "file format not recognized");
errx(EXIT_FAILURE, "elf_begin() failed: %s",
elf_errmsg(-1));
}

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 2, 12:28 AM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13290338
Default Alt Text
D32648.diff (466 B)

Event Timeline