mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168009 - heap-use-after-free (ASAN build) in updater.cpp mstrtok. r=spohl
This commit is contained in:
parent
90722885fe
commit
23ea097817
@ -307,8 +307,10 @@ mmin(size_t a, size_t b)
|
||||
static NS_tchar*
|
||||
mstrtok(const NS_tchar *delims, NS_tchar **str)
|
||||
{
|
||||
if (!*str || !**str)
|
||||
if (!*str || !**str) {
|
||||
*str = nullptr;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// skip leading "whitespace"
|
||||
NS_tchar *ret = *str;
|
||||
|
Loading…
Reference in New Issue
Block a user