diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-15 10:19:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-15 12:20:15 +0200 |
commit | d2756dbd9b11bdfbf1d576381b8f9846a6fb7070 (patch) | |
tree | ccac5308f5552d1d375a5aa343c4bb3e947b1c35 /emfio | |
parent | d75f4673ac6e51ae341a3d87dc9b16c4ed0c1cdf (diff) |
ofz#58991 Heap-buffer-overflow
Change-Id: I44661cb2f9b2f44118140ae2fbcf86fe12cd282c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151760
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index dcb8a2379148..73a082eae2e8 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -1009,7 +1009,7 @@ namespace emfio } else if (aPointTypes[i] & PT_BEZIERTO) { - if (aPoints.size() - i < 3) + if (nPointsCount - i < 3) { SAL_WARN("emfio", "EMF file error: Not enough Bezier points."); break; |