Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151253476
D41011.id124582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
720 B
Referenced Files
None
Subscribers
None
D41011.id124582.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
@@ -3,6 +3,10 @@
*
* Copyright (c) 1987, 1993
* The Regents of the University of California. All rights reserved.
+ * Copyright (c) 2023 The FreeBSD Foundation
+ *
+ * Portions of this software were developed by Robert Clausecker
+ * <fuz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -51,7 +55,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
Wed, Apr 8, 3:30 AM (5 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31041029
Default Alt Text
D41011.id124582.diff (720 B)
Attached To
Mode
D41011: lib/libc/string/bcmp.c: fix integer overflow bug
Attached
Detach File
Event Timeline
Log In to Comment