diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-31 20:19:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-01 11:35:33 +0200 |
commit | 49066fcc969167e0744407b064ecb4b66c059705 (patch) | |
tree | fc31aa6e91b590ab485d2b588a033dc383c0460c | |
parent | 7e22869694a7a1dd66d68e262727e64cc4dd6384 (diff) |
cid#1222237 Untrusted loop bound
Change-Id: I7c82a0e3febda2903f1ef0fe5e1145554876bb81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113443
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index bd5cb5c188c6..86946799a001 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -1824,7 +1824,7 @@ static void DumpSfnts(FILE *outf, sal_uInt8 *sfntP, sal_uInt32 sfntLen) break; } - sal_uInt32 l = nEndOffset - nStartOffset; + sal_uInt32 l = pSubRecordEnd - pSubRecordStart; HexFmtBlockWrite(h, pSubRecordStart, l); } } |