Merge pull request #5523 from chinhodado/patch-1

fix buffer overflow
This commit is contained in:
Henrik Rydgård 2014-02-20 11:15:34 +07:00
commit 474084e688

View File

@ -306,7 +306,7 @@ public:
break;
default:
ERROR_LOG_REPORT_ONCE(fmtc0_8888, G3D, "Reader: Unsupported C0 Format %d", decFmt_.c0fmt);
memset(color, 0, sizeof(float) * 4);
memset(color, 0, sizeof(u8) * 4);
break;
}
}