From 28ed3227267f7a00273595a60206744fd3c78b96 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 10 Dec 2016 20:51:58 +0000 Subject: oss-fuzz: handle W_META_CREATEFONTINDIRECT like EMR_EXTCREATEFONTINDIRECTW Change-Id: Iaa142d5d0ac0f00e89e8b7d7ffdef8137157cec9 (cherry picked from commit e718ac0ae415bba2988c96c36995755bbfd9df7f) (cherry picked from commit d3ea20e55ca7d82b6121f7ed3db5fd170fcac94f) Reviewed-on: https://gerrit.libreoffice.org/31839 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- .../cppunit/graphicfilter/data/wmf/fail/facename-1.wmf | Bin 0 -> 4197 bytes vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf | Bin 0 -> 5082 bytes vcl/source/filter/wmf/winwmf.cxx | 3 ++- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf create mode 100644 vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf (limited to 'vcl') diff --git a/vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf new file mode 100644 index 000000000000..29c534fdcc65 Binary files /dev/null and b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/facename-1.wmf differ diff --git a/vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf new file mode 100644 index 000000000000..e2fac15234e1 Binary files /dev/null and b/vcl/qa/cppunit/graphicfilter/data/wmf/fail/seek-1.wmf differ diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index 1c65342c53c1..c4f7e7889666 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -885,7 +885,8 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc ) case W_META_CREATEFONTINDIRECT: { Size aFontSize; - char lfFaceName[LF_FACESIZE]; + char lfFaceName[LF_FACESIZE+1]; + lfFaceName[LF_FACESIZE] = 0; sal_Int16 lfEscapement = 0; sal_Int16 lfOrientation = 0; sal_Int16 lfWeight = 0; -- cgit 5.3-3.2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-11-16 19:08:18 +0100
committerAndras Timar <andras.timar@collabora.com>2015-11-16 19:08:23 +0100
commit4158227dae901a16c9fb3af541ee8f8cef6a100f (patch)
treeca9acdbd06864ff5861871a8f545d323a72a0f4d /tools/StaticLibrary_ooopathutils.mk
parent0d77e2faa95e440e5bde96432ade122e1804a0cc (diff)