Mageia Bugzilla – Attachment 8910 Details for
Bug 20180
libxpm new security issue CVE-2016-10164
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Test script for CVE-2016-10164 to be run against large XPM file
poc.c (text/plain), 586 bytes, created by
Len Lawrence
on 2017-01-31 00:44:50 CET
(
hide
)
Description:
Test script for CVE-2016-10164 to be run against large XPM file
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2017-01-31 00:44:50 CET
Size:
586 bytes
patch
obsolete
>#include <X11/Xlib.h> >#include <X11/xpm.h> > >#include <err.h> >#include <string.h> > >int >main(int argc, char *argv[0]) >{ > Display *d; > char *fname = argc > 1 ? argv[1] : "poc.xpm"; > char **data; > XpmImage img; > XpmInfo info; > > if ((d = XOpenDisplay(NULL)) == NULL) > err(1, "failed to open display"); > > memset(&info, 0, sizeof(info)); > info.valuemask |= XpmReturnExtensions; > if (XpmReadFileToXpmImage(fname, &img, &info) != XpmSuccess) > err(1, "failed to parse image"); > > if (XpmCreateDataFromXpmImage(&data, &img, &info) != XpmSuccess) > err(1, "failed to create data"); > > return 0; >} >
#include <X11/Xlib.h> #include <X11/xpm.h> #include <err.h> #include <string.h> int main(int argc, char *argv[0]) { Display *d; char *fname = argc > 1 ? argv[1] : "poc.xpm"; char **data; XpmImage img; XpmInfo info; if ((d = XOpenDisplay(NULL)) == NULL) err(1, "failed to open display"); memset(&info, 0, sizeof(info)); info.valuemask |= XpmReturnExtensions; if (XpmReadFileToXpmImage(fname, &img, &info) != XpmSuccess) err(1, "failed to parse image"); if (XpmCreateDataFromXpmImage(&data, &img, &info) != XpmSuccess) err(1, "failed to create data"); return 0; }
View Attachment As Raw
Actions:
View
Attachments on
bug 20180
: 8910