Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144317520
D47243.id145404.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
492 B
Referenced Files
None
Subscribers
None
D47243.id145404.diff
View Options
diff --git a/sbin/devmatch/devmatch.c b/sbin/devmatch/devmatch.c
--- a/sbin/devmatch/devmatch.c
+++ b/sbin/devmatch/devmatch.c
@@ -127,6 +127,12 @@
err(1, "Can't open %s for reading", fn);
}
+ if (len < sizeof(int)) {
+ warnx("Linker hints file too short.");
+ free(hints);
+ hints = NULL;
+ return;
+ }
if (*(int *)(intptr_t)hints != LINKER_HINTS_VERSION) {
warnx("Linker hints version %d doesn't match expected %d.",
*(int *)(intptr_t)hints, LINKER_HINTS_VERSION);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 7:48 PM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28491241
Default Alt Text
D47243.id145404.diff (492 B)
Attached To
Mode
D47243: devmatch: Catch truncated linker hints files
Attached
Detach File
Event Timeline
Log In to Comment