diff --git a/OpenEXR/IlmImfFuzzTest/testFuzzDeepScanLines.cpp b/OpenEXR/IlmImfFuzzTest/testFuzzDeepScanLines.cpp index 6c92d28f3f..72f281bbc9 100644 --- a/OpenEXR/IlmImfFuzzTest/testFuzzDeepScanLines.cpp +++ b/OpenEXR/IlmImfFuzzTest/testFuzzDeepScanLines.cpp @@ -185,6 +185,24 @@ void generateRandomFile(const char filename[], int channelCount,int parts , Comp } pt.writePixels(height); + + + for (int i = 0; i < height; i++) + { + // + // Fill in data at the last minute. + // + + for (int j = 0; j < width; j++) + { + sampleCount[i][j] = rand() % 4 + 1; + for (int k = 0; k < channelCount; k++) + { + delete[] (float*) data[k][i][j]; + } + } + } + } }