The Samba-Bugzilla – Attachment 13154 Details for
Bug 12746
possible negative array access in debug_backends_log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to avoid negative array access
samba-fix-oob-debug_backends_log.diff (text/plain), 419 bytes, created by
Hanno Böck
on 2017-04-15 20:27:52 UTC
(
hide
)
Description:
patch to avoid negative array access
Filename:
MIME Type:
Creator:
Hanno Böck
Created:
2017-04-15 20:27:52 UTC
Size:
419 bytes
patch
obsolete
>diff -Naurp a/lib/util/debug.c b/lib/util/debug.c >--- a/lib/util/debug.c 2017-01-11 08:55:14.000000000 +0100 >+++ b/lib/util/debug.c 2017-04-15 18:39:21.939188030 +0200 >@@ -397,7 +397,7 @@ static void debug_backends_log(const cha > * a buffer without the newline character. > */ > len = MIN(strlen(msg), FORMAT_BUFR_SIZE - 1); >- if (msg[len - 1] == '\n') { >+ if ((len > 0) && (msg[len - 1] == '\n')) { > len--; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 12746
:
13154
|
13159