Skip to content

Commit

Permalink
Merge pull request #119 from radarhere/pre-commit-clang
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 28, 2024
2 parents 5597f61 + 996c053 commit d443d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libImaging/FliDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ ImagingFliDecode(Imaging im, ImagingCodecState state, UINT8 *buf, Py_ssize_t byt
}
/* Note, have to check Data + size, not just ptr + size) */
if (data + (state->xsize * state->ysize) > ptr + bytes) {
/* not enough data for frame */
/* UNDONE Unclear that we're actually going to leave the buffer at
* the right place. */
// not enough data for frame
// UNDONE Unclear that we're actually going to leave the buffer at
// the right place.
return ptr - buf; /* bytes consumed */
}
for (y = 0; y < state->ysize; y++) {
Expand Down

0 comments on commit d443d68

Please sign in to comment.