Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103241828
D29463.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D29463.diff
View Options
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -2294,8 +2294,7 @@
size_t len;
len = strlen(namep);
-
- if (bcmp(name, namep, len) != 0)
+ if (strncmp(name, namep, len) != 0)
return (ENODEV);
name += len;
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -1255,7 +1255,7 @@
int u, i;
i = strlen(stem);
- if (bcmp(stem, name, i) != 0)
+ if (strncmp(stem, name, i) != 0)
return (0);
if (!isdigit(name[i]))
return (0);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 1:32 PM (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14802697
Default Alt Text
D29463.diff (586 B)
Attached To
Mode
D29463: Fix several dev_clone callbacks to avoid out-of-bounds reads
Attached
Detach File
Event Timeline
Log In to Comment