diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-05 09:10:55 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2018-03-05 09:10:55 +0000 |
commit | cc577ce8c5e051967fce0ae954f78874e400c2f8 (patch) | |
tree | 9b1d8e3144cb7f49ffe2c1eb1ec189b6c04ba174 /Build/source/libs/graphite2/graphite2-src/src/Silf.cpp | |
parent | 0ab585a159d6f011c3eb364d7c0dc20424ef0738 (diff) |
graphite2-1.3.11
git-svn-id: svn://tug.org/texlive/trunk@46828 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/graphite2/graphite2-src/src/Silf.cpp')
-rw-r--r-- | Build/source/libs/graphite2/graphite2-src/src/Silf.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Build/source/libs/graphite2/graphite2-src/src/Silf.cpp b/Build/source/libs/graphite2/graphite2-src/src/Silf.cpp index e36b50289f0..1848e020269 100644 --- a/Build/source/libs/graphite2/graphite2-src/src/Silf.cpp +++ b/Build/source/libs/graphite2/graphite2-src/src/Silf.cpp @@ -276,6 +276,7 @@ size_t Silf::readClassMap(const byte *p, size_t data_len, uint32 version, Error return ERROROFFSET; // Check the linear offsets are sane, these must be monotonically increasing. + assert(m_nClass >= m_nLinear); for (const uint32 *o = m_classOffsets, * const o_end = o + m_nLinear; o != o_end; ++o) if (e.test(o[0] > o[1], E_BADCLASSOFFSET)) return ERROROFFSET; |