Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101955356
D32648.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
466 B
Referenced Files
None
Subscribers
None
D32648.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 6:51 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14498389
Default Alt Text
D32648.diff (466 B)
Attached To
Mode
D32648: strip/objcopy: handle empty file as unknown
Attached
Detach File
Event Timeline
Log In to Comment