Skip to content

Commit

Permalink
[WiP] Try to fix OOB read
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 14, 2024
1 parent 908c0c0 commit af1825b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/resample/shrinkv.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ vips_shrinkv_uchar_vector_gen(VipsRegion *out_region,
s.left = r->left;
s.top = (r->top + y) * shrink->vshrink;
s.width = r->width;
s.height = chunk_height * shrink->vshrink;
s.height = chunk_height * shrink->vshrink + 1;
#ifdef DEBUG
printf("vips_shrinkv_uchar_vector_gen: requesting %d lines from %d\n",
s.height, s.top);
Expand Down

0 comments on commit af1825b

Please sign in to comment.