diff options
Diffstat (limited to 'main/imlib2/bufferoverflow.patch')
-rw-r--r-- | main/imlib2/bufferoverflow.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/imlib2/bufferoverflow.patch b/main/imlib2/bufferoverflow.patch new file mode 100644 index 0000000000..397b43fb8c --- /dev/null +++ b/main/imlib2/bufferoverflow.patch @@ -0,0 +1,13 @@ +--- src/modules/loaders/loader_xpm.c ++++ src/modules/loaders/loader_xpm.c.new +@@ -246,8 +246,8 @@ + return 0; + } + ptr = im->data; +- end = ptr + (sizeof(DATA32) * w * h); + pixels = w * h; ++ end = ptr + pixels; + } + else + { + |