+++ This bug was initially created as a clone of Bug #231693 +++
A bug recently showed up in the Debian BTS that describes an integer overflow in
X's XGetPixel() function
The report incorrectly states it is a buffer overflow. The bug also has a
proposed patch and reproducer for this flaw.
The issue is that the XInitImage() function allows the caller to supply silly
values, which can cause several integer overflow. A call to XGetPixel() can
also result in integer overflows. While one would expect the calling
application to sanitize the data passed to XInitImage(), the library should also
be smart enough to prevent the caller from giving it bad data.
Created attachment 149881 [details]
First patch attached to the Debian bug
Created attachment 149882 [details]
The second patch attached to the Debian bug
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.