Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148078305
D41011.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
268 B
Referenced Files
None
Subscribers
None
D41011.diff
View Options
diff --git a/lib/libc/string/bcmp.c b/lib/libc/string/bcmp.c
--- a/lib/libc/string/bcmp.c
+++ b/lib/libc/string/bcmp.c
@@ -51,7 +51,7 @@
p2 = (char *)b2;
do
if (*p1++ != *p2++)
- break;
+ return (1);
while (--length);
- return (length);
+ return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 2:51 PM (5 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29774870
Default Alt Text
D41011.diff (268 B)
Attached To
Mode
D41011: lib/libc/string/bcmp.c: fix integer overflow bug
Attached
Detach File
Event Timeline
Log In to Comment