ParaView Usability Issues

BUGS
Bug: vtkSquirtCompressor.cxx

reads off the end of the input array because while loop condition doesn't account for the mutiple advances of index.

// Go through color buffer and put RLE format into compressed buffer while((index < 3*numPixels) && (comp_index < end_index)) {

int next_color = 0; // Record color unsigned char* p = (unsigned char*)&current_color; *p++ = _rawColorBuffer[index]; *p++ = _rawColorBuffer[index+1]; *p++ = _rawColorBuffer[index+2]; *p = 0x0; _rawCompressedBuffer[comp_index] = current_color; index+=3; p = (unsigned char*)&next_color; *p++ = _rawColorBuffer[index]; *p++ = _rawColorBuffer[index+1]; *p++ = _rawColorBuffer[index+2]; *p = 0x0; // Compute Run while(((current_color&compress_mask) == (next_color&compress_mask)) &&       (index < 3*numPixels) && (count<255)) {        index+=3; count++; if (index < 3*numPixels) {         p = (unsigned char*)&next_color; *p++ = _rawColorBuffer[index]; *p++ = _rawColorBuffer[index+1]; *p++ = _rawColorBuffer[index+2]; *p = 0x0; }       }