diff options
author | Albert Astals Cid <aacid@kde.org> | 2021-07-21 21:44:54 +0200 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2021-07-21 19:46:53 +0000 |
commit | c61f0c0afdf2ae48db1f0b15cf1cc0023d88c203 (patch) | |
tree | e3285a3d75f281e82a07568403b7574d85e1fd21 | |
parent | c85a85423e3fe0c914d0a5b3f3e9e3ba3205fb79 (diff) |
GfxCIDFont::getNextChar: Also set ox and oy to 0 on the non cmap case
Otherwise we may end up using uninitized values
oss-fuzz/36396
-rw-r--r-- | poppler/GfxFont.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index 77dc338b..ccd4366a 100644 --- a/poppler/GfxFont.cc +++ b/poppler/GfxFont.cc @@ -13,7 +13,7 @@ // All changes made under the Poppler project to this file are licensed // under GPL version 2 or later // -// Copyright (C) 2005, 2006, 2008-2010, 2012, 2014, 2015, 2017-2020 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2005, 2006, 2008-2010, 2012, 2014, 2015, 2017-2021 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2005, 2006 Kristian Høgsberg <krh@redhat.com> // Copyright (C) 2006 Takashi Iwai <tiwai@suse.de> // Copyright (C) 2007 Julien Rebetez <julienr@svn.gnome.org> @@ -2009,7 +2009,7 @@ int GfxCIDFont::getNextChar(const char *s, int len, CharCode *code, Unicode cons if (!cMap) { *code = 0; *uLen = 0; - *dx = *dy = 0; + *dx = *dy = *ox = *oy = 0; return 1; } |