summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/okular/files/okular-4.4.5-overflow.patch')
-rw-r--r--kde-base/okular/files/okular-4.4.5-overflow.patch30
1 files changed, 0 insertions, 30 deletions
diff --git a/kde-base/okular/files/okular-4.4.5-overflow.patch b/kde-base/okular/files/okular-4.4.5-overflow.patch
deleted file mode 100644
index 478bb4d4359e..000000000000
--- a/kde-base/okular/files/okular-4.4.5-overflow.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Index: okular/generators/plucker/unpluck/image.cpp
-===================================================================
---- okular/generators/plucker/unpluck/image.cpp (Revision 1167825)
-+++ okular/generators/plucker/unpluck/image.cpp (Revision 1167826)
-@@ -289,8 +289,23 @@
- for (j = 0; j < bytes_per_row;) {
- incount = *palm_ptr++;
- inval = *palm_ptr++;
-- memset (rowbuf + j, inval, incount);
-- j += incount;
-+ if (incount + j <= bytes_per_row * width)
-+ {
-+ memset (rowbuf + j, inval, incount);
-+ j += incount;
-+ }
-+ else
-+ {
-+ free (rowbuf);
-+ free (lastrow);
-+ free (jpeg_row);
-+
-+ jpeg_destroy_compress (&cinfo);
-+
-+ fclose( outfile );
-+
-+ return false;
-+ }
- }
- }
- else if ((flags & PALM_IS_COMPRESSED_FLAG)