mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #4806 from nqbit/msan_bug
Initialize offset memory for PyImagingPhotoPut
This commit is contained in:
commit
14643d5746
|
@ -114,7 +114,7 @@ PyImagingPhotoPut(ClientData clientdata, Tcl_Interp* interp,
|
|||
|
||||
if (strcmp(im->mode, "1") == 0 || strcmp(im->mode, "L") == 0) {
|
||||
block.pixelSize = 1;
|
||||
block.offset[0] = block.offset[1] = block.offset[2] = 0;
|
||||
block.offset[0] = block.offset[1] = block.offset[2] = block.offset[3] = 0;
|
||||
} else if (strncmp(im->mode, "RGB", 3) == 0) {
|
||||
block.pixelSize = 4;
|
||||
block.offset[0] = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user