Bug 710989 - Fix possible memset underflow in Time::Explode(). r=cjones

This commit is contained in:
Charles Chan 2012-03-23 21:24:07 -07:00
parent 339f10fddc
commit d4616f491f

View File

@ -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;
}