blob: 80446ac5c89c82d131b2360f3515caf3a08ce72c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- src/psaux/psobjs.c.orig 2023-02-04 23:00:05.000000000 +0900
+++ src/psaux/psobjs.c 2023-02-22 16:28:26.632283841 +0900
@@ -200,7 +200,8 @@
/* add the object to the base block and adjust offset */
table->elements[idx] = FT_OFFSET( table->block, table->cursor );
table->lengths [idx] = length;
- FT_MEM_COPY( table->block + table->cursor, object, length );
+ if (length != 0)
+ FT_MEM_COPY( table->block + table->cursor, object, length );
table->cursor += length;
return FT_Err_Ok;
|