office-gobmx/external/freetype/ubsan.patch
Xisco Fauli 265914ee3e freetype: upgrade to 2.13.3
Downloaded from
https://sourceforge.net/projects/freetype/files/freetype2/2.13.3/freetype-2.13.3.tar.xz/download

Change-Id: Id38ce5fe5c04d515f4e8298326336cfb60f7ed36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172607
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-08-29 20:09:50 +02:00

11 lines
331 B
Diff

--- src/truetype/ttgxvar.c
+++ src/truetype/ttgxvar.c
@@ -1045,7 +1045,7 @@
if ( varData->longWords )
per_region_size *= 2;
- bytes = varData->deltaSet + per_region_size * innerIndex;
+ bytes = varData->deltaSet ? varData->deltaSet + per_region_size * innerIndex : NULL;
if ( varData->longWords )
{