CVE-2016-7944.patch revision 1665
6033N/AThe 32 bit field "rep.length" is not checked for validity, which allows
6033N/A src/Region.c | 15 ++++++++++++---
6033N/A #include "Xfixesint.h"
bounds->y = rep.y;
bounds->width = rep.width;
bounds->height = rep.height;
- nbytes = (long) rep.length << 2;
- nrects = rep.length >> 1;
+ if (rep.length < (INT_MAX >> 2)) {
+ nbytes = (long) rep.length << 2;
+ nrects = rep.length >> 1;
_XEatDataWords(dpy, rep.length);