qtgui-4.8.6-CVE-2015-1860.patch 1009 B

1234567891011121314151617181920212223242526272829303132
  1. From a1cf194c54be57d6ab55dfd26b9562a60532208e Mon Sep 17 00:00:00 2001
  2. From: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
  3. Date: Wed, 11 Mar 2015 09:00:41 +0100
  4. Subject: Fixes crash in gif image decoder
  5. Fuzzing test revealed that for certain malformed gif files,
  6. qgifhandler would segfault.
  7. Change-Id: I5bb6f60e1c61849e0d8c735edc3869945e5331c1
  8. (cherry picked from qtbase/ea2c5417fcd374302f5019e67f72af5facbd29f6)
  9. Reviewed-by: Richard J. Moore <rich@kde.org>
  10. ---
  11. src/gui/image/qgifhandler.cpp | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/src/gui/image/qgifhandler.cpp b/src/gui/image/qgifhandler.cpp
  14. index 5199dd3..49aa2a6 100644
  15. --- a/src/gui/image/qgifhandler.cpp
  16. +++ b/src/gui/image/qgifhandler.cpp
  17. @@ -944,6 +944,8 @@ void QGIFFormat::fillRect(QImage *image, int col, int row, int w, int h, QRgb co
  18. void QGIFFormat::nextY(unsigned char *bits, int bpl)
  19. {
  20. + if (out_of_bounds)
  21. + return;
  22. int my;
  23. switch (interlace) {
  24. case 0: // Non-interlaced
  25. --
  26. cgit v0.11.0