mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 710989 - Fix possible memset underflow in Time::Explode(). r=cjones
This commit is contained in:
parent
f6bd4f4799
commit
b210139731
@ -195,7 +195,7 @@ void Time::Explode(bool is_local, Exploded* exploded) const {
|
||||
SYSTEMTIME st;
|
||||
if (!success || !FileTimeToSystemTime(&ft, &st)) {
|
||||
NOTREACHED() << "Unable to convert time, don't know why";
|
||||
ZeroMemory(exploded, sizeof(exploded));
|
||||
ZeroMemory(exploded, sizeof(*exploded));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user