Permalink
Browse files

[Security] Fix memory leak in libgd

Summary:
Applies php-src commit 1cb2079d6c54cb383937880f1eae78975e1a757d that fixes a
memory leak in libgd.

Reviewed By: alexeyt

Differential Revision: D6681554

fbshipit-source-id: 3580cb33d97968bc976a68f8bfb2a693f95d19ce
  • Loading branch information...
jano authored and fredemmott committed Jan 9, 2018
1 parent 0b9e2f8 commit c5efa1557cb43aa5a0732cd87bc0167b963f04af
Showing with 3 additions and 0 deletions.
  1. +3 −0 hphp/runtime/ext/gd/libgd/wbmp.cpp
@@ -164,7 +164,10 @@ readwbmp (int (*getin) (void *in), void *in, Wbmp ** return_wbmp)
}
if (skipheader (getin, in))
{
gdFree (wbmp);
return (-1);
}
wbmp->width = getmbi (getin, in);

0 comments on commit c5efa15

Please sign in to comment.