commit | 31b3a2b31a50f83ed100e01485013fd871399f45 | [log] [tgz] |
---|---|---|
author | Tom Sepez <tsepez@chromium.org> | Mon May 18 14:18:08 2015 -0700 |
committer | Tom Sepez <tsepez@chromium.org> | Mon May 18 14:18:08 2015 -0700 |
tree | aeece5130880a698b56eec044d73925e7e5ae7f3 | |
parent | a88e3a16ae711f6523ad3a40a08d774b72adc9eb [diff] |
Add safe FX_Alloc2D() macro This avoids unchecked multiplications when computing a size argument to malloc(). Such an overflow is very scary, and can result in exploitable bugs. Along the way, kill off some return checks, since we know this can't return NULL. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1143663004