[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 29c7592: * src/truetype/ttinterp.c (Ins_GETVARIATION)
From: |
Werner LEMBERG |
Subject: |
[freetype2] master 29c7592: * src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference. |
Date: |
Sat, 27 Jan 2018 08:44:00 -0500 (EST) |
branch: master
commit 29c759284e305ec428703c9a5831d0b1fc3497ef
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
* src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
Reported as
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
---
ChangeLog | 8 ++++++++
src/truetype/ttinterp.c | 12 ++++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 15ef4ae..fff4a41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2018-01-27 Werner Lemberg <address@hidden>
+ * src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.
+
+ Reported as
+
+ https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5736
+
+2018-01-27 Werner Lemberg <address@hidden>
+
* src/truetype/ttgxvar.c (tt_set_mm_blend): Minor.
2018-01-27 Werner Lemberg <address@hidden>
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c
index d855aaa..551f14a 100644
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -7532,8 +7532,16 @@
return;
}
- for ( i = 0; i < num_axes; i++ )
- args[i] = coords[i] >> 2; /* convert 16.16 to 2.14 format */
+ if ( coords )
+ {
+ for ( i = 0; i < num_axes; i++ )
+ args[i] = coords[i] >> 2; /* convert 16.16 to 2.14 format */
+ }
+ else
+ {
+ for ( i = 0; i < num_axes; i++ )
+ args[i] = 0;
+ }
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 29c7592: * src/truetype/ttinterp.c (Ins_GETVARIATION): Avoid NULL reference.,
Werner LEMBERG <=