mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
r23866: Fix a 1-byte buffer overrun
(This used to be commit 2ed83d36fec918e6ad9605f43e1a49fa5b61f17b)
This commit is contained in:
parent
6eca5f5042
commit
ac51ffb77b
@ -119,7 +119,7 @@ BOOL mangle_check_cache_alloc(const char *name, char **presult,
|
||||
char *result;
|
||||
pstrcpy(tmp, name);
|
||||
|
||||
if (!mangle_check_cache(tmp, sizeof(pstring), p)
|
||||
if (!mangle_check_cache(tmp, sizeof(pstring)-1, p)
|
||||
|| !(result = SMB_STRDUP(tmp))) {
|
||||
return False;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user