[PATCH] Xext/xres.c: Possible buffer underrun

2012-07-23 Thread Colin Harrison
Hi, I got a crash at free(counts) in ProcXResQueryClientResources() in Xext/xres.c when using client xrestop. Traced to an out-by-one error in ResFindAllRes() (please check code and confirm?). Fixed, for me (MinGW compilation for Windows), with the patch... --- ./Xext/save_xres.c 2012-07-10

Re: [PATCH] Xext/xres.c: Possible buffer underrun

2012-07-23 Thread Rami Ylimäki
On 07/23/2012 03:05 PM, Colin Harrison wrote: Hi, I got a crash at free(counts) in ProcXResQueryClientResources() in Xext/xres.c when using client xrestop. Traced to an out-by-one error in ResFindAllRes() (please check code and confirm?). Fixed, for me (MinGW compilation for Windows), with