diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-27 19:43:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-27 21:55:55 +0100 |
commit | 780e1ffb991f3bfc4e8a73714b0e2a464feb3a86 (patch) | |
tree | 70cbac9e7b04be6d80aa0f062623d4237b3c6b27 /vcl/source/font | |
parent | 618cb39b558b7e3f9a6f2aa8cf0a935602118388 (diff) |
cid#1473755 Untrusted loop bound
deem_sanizize isn't sufficiently complex to sanize its input apparently
Change-Id: Id1d73feefce9b587a8024021d8766267b105b4f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113234
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/fontcharmap.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx index ac4336137735..e68939d3885e 100644 --- a/vcl/source/font/fontcharmap.cxx +++ b/vcl/source/font/fontcharmap.cxx @@ -23,7 +23,6 @@ #include <algorithm> #include <vector> -#include <o3tl/safeint.hxx> #include <o3tl/sorted_vector.hxx> CmapResult::CmapResult( bool bSymbolic, @@ -113,7 +112,6 @@ bool ParseCMAP( const unsigned char* pCmap, int nLength, CmapResult& rResult ) int nSubTables = GetUShort( pCmap + 2 ); if( (nSubTables <= 0) || (nLength < (24 + 8*nSubTables)) ) return false; - nSubTables = o3tl::deem_sanitized(nSubTables); const unsigned char* pEndValidArea = pCmap + nLength; |