Prevent an integer overflow in _gdContributionsAlloc
commit63d67c8993df34e1082010a3d49eecd66f67fe2f
authorChristopher Dykes <cdykes@fb.com>
Fri, 30 Sep 2016 00:08:38 +0000 (29 17:08 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Sat, 1 Oct 2016 03:25:45 +0000 (30 20:25 -0700)
tree997a1eb7c763835eddbcd83e6aa02e16d11157a5
parent9f4a693bfe5ad792c98e64ee12df777231ab8485
Prevent an integer overflow in _gdContributionsAlloc

Summary: And free some stuff while we're at it.

Reviewed By: aorenste

Differential Revision: D3799067

fbshipit-source-id: 6460a368823266b6abf3e6da509561b85b16a08c
hphp/runtime/ext/gd/libgd/gd.cpp
hphp/runtime/ext/gd/libgd/gd_interpolation.cpp