KPath: Remove memset after allocate.
We don't really need to clear these buffers, as they're basically always used with user_strlcpy or precisely sized buffers, so there should be no risk of "leaking" information to userland.
This commit is contained in:
@@ -440,7 +440,7 @@ KPath::_AllocateBuffer()
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
memset(fBuffer, 0, fBufferSize);
|
||||
fBuffer[0] = '\0';
|
||||
fFailed = false;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user