summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-04-19 12:37:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-19 21:27:11 +0200
commitb209d17236778b5bd2ca8f519166e75447ed9117 (patch)
tree1b75a638e68cef24ce89193ab1b58a28fa56c965 /vcl/inc
parent598ff4e2433a419a432fd54ed5dac560663ec107 (diff)
mpReqFontName is potentially pointing to freed memory
since we assign it from a temporary OString. No idea why this hasn't caused a problem already. Change-Id: I5480fb2ab5d1e07212ad804f99223946abf5a6c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166297 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/fontsubset.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/fontsubset.hxx b/vcl/inc/fontsubset.hxx
index 01bd67f4bff8..490d4839f711 100644
--- a/vcl/inc/fontsubset.hxx
+++ b/vcl/inc/fontsubset.hxx
@@ -77,7 +77,7 @@ private:
// subset-request details
FontType mnReqFontTypeMask; ///< allowed subset-target font types
SvStream* mpOutFile;
- const char* mpReqFontName;
+ OString maReqFontName;
const sal_GlyphId* mpReqGlyphIds;
const sal_uInt8* mpReqEncodedIds;
int mnReqGlyphCount;