tdf#99528: revert vertical tabs changes (24.8 only)
[LibreOffice.git] / external / freetype / ubsan.patch
blob43ce217c4b7df38084956e0111f678a99ec903f7
1 --- src/psaux/psobjs.c.orig 2023-02-04 23:00:05.000000000 +0900
2 +++ src/psaux/psobjs.c 2023-02-22 16:28:26.632283841 +0900
3 @@ -200,7 +200,8 @@
4 /* add the object to the base block and adjust offset */
5 table->elements[idx] = FT_OFFSET( table->block, table->cursor );
6 table->lengths [idx] = length;
7 - FT_MEM_COPY( table->block + table->cursor, object, length );
8 + if (length != 0)
9 + FT_MEM_COPY( table->block + table->cursor, object, length );
11 table->cursor += length;
12 return FT_Err_Ok;
13 --- src/truetype/ttgxvar.c
14 +++ src/truetype/ttgxvar.c
15 @@ -1045,7 +1045,7 @@
16 if ( varData->longWords )
17 per_region_size *= 2;
19 - bytes = varData->deltaSet + per_region_size * innerIndex;
20 + bytes = varData->deltaSet ? varData->deltaSet + per_region_size * innerIndex : NULL;
22 if ( varData->longWords )