Page MenuHomeFreeBSD

D20685.id61557.diff
No OneTemporary

D20685.id61557.diff

Index: head/sys/compat/linux/linux_mib.c
===================================================================
--- head/sys/compat/linux/linux_mib.c
+++ head/sys/compat/linux/linux_mib.c
@@ -146,7 +146,8 @@
return (EINVAL);
osrelease = sep + 1;
v2 = strtol(osrelease, &sep, 10);
- if (osrelease == sep || sep != eosrelease)
+ if (osrelease == sep ||
+ (sep != eosrelease && (sep + 1 >= eosrelease || *sep != '-')))
return (EINVAL);
v = LINUX_KERNVER(v0, v1, v2);

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 12:33 PM (5 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16771493
Default Alt Text
D20685.id61557.diff (479 B)

Event Timeline