Page MenuHomeFreeBSD

D47243.id145404.diff
No OneTemporary

D47243.id145404.diff

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

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)

Event Timeline