From 331ef99cd8b2b0a36ea256cfb082b64f19a2196f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 Mar 2026 11:40:02 -0300 Subject: [PATCH] [raster] Reduce buffer size cap Lower HB_RASTER_MAX_BUFFER_SIZE from 1<<30 to 1<<24 so the shared raster image / clip-mask limit meaningfully constrains pathological fuzzer inputs instead of allowing timeout-scale temporary buffers. Assisted-by: OpenAI Codex --- src/hb-limits.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-limits.hh b/src/hb-limits.hh index 8dc7b1ae2..5b9954d98 100644 --- a/src/hb-limits.hh +++ b/src/hb-limits.hh @@ -113,7 +113,7 @@ #endif #ifndef HB_RASTER_MAX_BUFFER_SIZE -#define HB_RASTER_MAX_BUFFER_SIZE ((size_t) 1 << 30) +#define HB_RASTER_MAX_BUFFER_SIZE ((size_t) 1 << 24) #endif