DescriptionVerify that the image is not empty before calling memset().
Building with _FORTIFY_SOURCE=2 and NDEBUG set makes glibc complain that the
call to memset() in TestGraphics2D::TestInitToZero() can have a 0-byte size
argument.
Avoid the warning by asserting that the image does have a valid area before
using its height in the call to memset().
R=brettw, yzshen
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194893
Patch Set 1 #
Messages
Total messages: 9 (0 generated)
|