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 15, 2024
1 parent 4403628 commit 07a3dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libvips/iofuncs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,12 @@ buffer_move(VipsBuffer *buffer, VipsRect *area)
area->width * area->height;

/* Need to pad buffer size to be aligned-up to
* 64 bytes for the vips_reduce{h,v} highway path.
* 128 bytes for the highway paths.
*/
#ifdef HAVE_HWY
if (im->BandFmt == VIPS_FORMAT_UCHAR) {
new_bsize += /*HWY_ALIGNMENT*/ 64 - 1;
align = /*HWY_ALIGNMENT*/ 64;
new_bsize += /*HWY_ALIGNMENT*/ 128 - 1;
align = /*HWY_ALIGNMENT*/ 128;
}
else
#endif /*HAVE_HWY*/
Expand Down

0 comments on commit 07a3dab

Please sign in to comment.