mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
Patch for nmbd core dump in printing debug packets. No length check.
Jeremy. (This used to be commit eacb96396d57d6b622b750d64b3686e6fbeaf68c)
This commit is contained in:
parent
57007050da
commit
38227191ed
@ -107,12 +107,14 @@ static void debug_browse_data(char *outbuf, int len)
|
||||
|
||||
for (j = 0; j < 16; j++)
|
||||
{
|
||||
unsigned char x = outbuf[i+j];
|
||||
unsigned char x;
|
||||
if (i+j >= len)
|
||||
break;
|
||||
|
||||
x = outbuf[i+j];
|
||||
if (x < 32 || x > 127)
|
||||
x = '.';
|
||||
|
||||
if (i+j >= len)
|
||||
break;
|
||||
DEBUGADD( 4, ( "%c", x ) );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user