You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB

  1. From fe8d7165956b88df4837034a9161dc5fd20cf67a Mon Sep 17 00:00:00 2001
  2. From: Even Rouault <even.rouault@spatialys.com>
  3. Date: Mon, 26 Jun 2017 15:19:59 +0000
  4. Subject: [PATCH] * libtiff/tif_jbig.c: fix memory leak in error code path of
  5. JBIGDecode() Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2706 Reported
  6. by team OWL337
  7. * libtiff/tif_jpeg.c: error out at decoding time if anticipated libjpeg
  8. ---
  9. ChangeLog | 8 +++++++-
  10. libtiff/tif_jbig.c | 1 +
  11. 2 files changed, 8 insertions(+), 1 deletion(-)
  12. diff --git a/ChangeLog b/ChangeLog
  13. index bc5096e7..ecd70534 100644
  14. --- a/ChangeLog
  15. +++ b/ChangeLog
  16. @@ -1,3 +1,9 @@
  17. +2017-06-26 Even Rouault <even.rouault at spatialys.com>
  18. +
  19. + * libtiff/tif_jbig.c: fix memory leak in error code path of JBIGDecode()
  20. + Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2706
  21. + Reported by team OWL337
  22. +
  23. 2017-06-01 Even Rouault <even.rouault at spatialys.com>
  24. * libtiff/tif_dirinfo.c, tif_dirread.c: add _TIFFCheckFieldIsValidForCodec(),
  25. diff --git a/libtiff/tif_jbig.c b/libtiff/tif_jbig.c
  26. index 5f5f75e2..c75f31d9 100644
  27. --- a/libtiff/tif_jbig.c
  28. +++ b/libtiff/tif_jbig.c
  29. @@ -94,6 +94,7 @@ static int JBIGDecode(TIFF* tif, uint8* buffer, tmsize_t size, uint16 s)
  30. jbg_strerror(decodeStatus)
  31. #endif
  32. );
  33. + jbg_dec_free(&decoder);
  34. return 0;
  35. }