[Mesa-dev] [PATCH] swrast: Fix unsigned promotion in pointer arithmetic

2012-01-23 Thread Chad Versace
When rowstride was negatie, unsigned promotion caused a segfault here: 299│if (rb-Format == MESA_FORMAT_S8) { 300│ const GLuint rowStride = rb-RowStride; 301│ for (i = 0; i count; i++) { 302│ if (x[i] = 0 y[i] = 0 x[i] w y[i] h) { 303├stencil[i] = *(map

Re: [Mesa-dev] [PATCH] swrast: Fix unsigned promotion in pointer arithmetic

2012-01-23 Thread Brian Paul
On Mon, Jan 23, 2012 at 10:15 AM, Chad Versace chad.vers...@linux.intel.com wrote: When rowstride was negatie, unsigned promotion caused a segfault here: 299│    if (rb-Format == MESA_FORMAT_S8) { 300│       const GLuint rowStride = rb-RowStride; 301│       for (i = 0; i count; i++) { 302│