OLD | NEW |
1 diff -rupN ./src/fcpat.c ../fontconfig-2.8.0-patched/src/fcpat.c | 1 diff -rupN ./src/fcpat.c ../fontconfig-2.8.0-patched/src/fcpat.c |
2 --- ./src/fcpat.c 2009-11-17 01:46:18.000000000 +0300 | 2 --- ./src/fcpat.c 2009-11-17 01:46:18.000000000 +0300 |
3 +++ ../fontconfig-2.8.0-patched/src/fcpat.c 2014-01-27 20:11:36.185213935 +0
400 | 3 +++ ../fontconfig-2.8.0-patched/src/fcpat.c 2014-01-27 20:11:36.185213935 +0
400 |
4 @@ -37,6 +37,9 @@ FcPatternCreate (void) | 4 @@ -37,6 +37,9 @@ FcPatternCreate (void) |
5 p = (FcPattern *) malloc (sizeof (FcPattern)); | 5 p = (FcPattern *) malloc (sizeof (FcPattern)); |
6 if (!p) | 6 if (!p) |
7 return 0; | 7 return 0; |
8 + // Silence Valgrind/MemorySanitizer. There is uninitialized padding at the | 8 + // Silence Valgrind/MemorySanitizer. There is uninitialized padding at the |
9 + // end of this structure. When serialized to file, this will cause a report
. | 9 + // end of this structure. When serialized to file, this will cause a report
. |
10 + memset(p, 0, sizeof(*p)); | 10 + memset(p, 0, sizeof(*p)); |
11 FcMemAlloc (FC_MEM_PATTERN, sizeof (FcPattern)); | 11 FcMemAlloc (FC_MEM_PATTERN, sizeof (FcPattern)); |
12 p->num = 0; | 12 p->num = 0; |
13 p->size = 0; | 13 p->size = 0; |
OLD | NEW |