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 f6bd4f4799
commit b210139731

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