[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 4f11209: * src/base/ftobjs.c (FT_Set_Charmap): Robust
From: |
Alexei Podtelezhnikov |
Subject: |
[freetype2] master 4f11209: * src/base/ftobjs.c (FT_Set_Charmap): Robustify. |
Date: |
Thu, 28 Jun 2018 21:31:57 -0400 (EDT) |
branch: master
commit 4f11209f5cd4f83f185042d54ad1c892dffb5ed1
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>
* src/base/ftobjs.c (FT_Set_Charmap): Robustify.
---
ChangeLog | 4 ++++
src/base/ftobjs.c | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 11de7b9..2dc6d29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-06-28 Alexei Podtelezhnikov <address@hidden>
+
+ * src/base/ftobjs.c (FT_Set_Charmap): Robustify.
+
2018-06-25 Werner Lemberg <address@hidden>
[truetype] Fix memory leak.
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 38214b5..baaeaff 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -3526,14 +3526,12 @@
if ( !cur || !charmap )
return FT_THROW( Invalid_CharMap_Handle );
- if ( FT_Get_CMap_Format( charmap ) == 14 )
- return FT_THROW( Invalid_Argument );
-
limit = cur + face->num_charmaps;
for ( ; cur < limit; cur++ )
{
- if ( cur[0] == charmap )
+ if ( cur[0] == charmap &&
+ FT_Get_CMap_Format ( charmap ) != 14 )
{
face->charmap = cur[0];
return FT_Err_Ok;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 4f11209: * src/base/ftobjs.c (FT_Set_Charmap): Robustify.,
Alexei Podtelezhnikov <=