Kaydet (Commit) bf5bb66f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1251174 help coverity out here

Change-Id: I07d6d0356ee0093f7f10a7dfbbc37a620205f37a
üst b21b723c
...@@ -1091,7 +1091,7 @@ static sal_uInt32 getGlyph2(const sal_uInt8 *cmap, const sal_uInt32 nMaxCmapSize ...@@ -1091,7 +1091,7 @@ static sal_uInt32 getGlyph2(const sal_uInt8 *cmap, const sal_uInt32 nMaxCmapSize
} }
if(k == 0) { if(k == 0) {
firstCode = Int16FromMOTA(subHeader2s[k].firstCode); firstCode = Int16FromMOTA(subHeader2s[0].firstCode);
if(theLowByte >= firstCode && theLowByte < (firstCode + Int16FromMOTA(subHeader2s[k].entryCount))) { if(theLowByte >= firstCode && theLowByte < (firstCode + Int16FromMOTA(subHeader2s[k].entryCount))) {
sal_uInt16* const pGlyph = (&(subHeader2s[0].idRangeOffset)) sal_uInt16* const pGlyph = (&(subHeader2s[0].idRangeOffset))
+ (Int16FromMOTA(subHeader2s[0].idRangeOffset)/2) /* + offset */ + (Int16FromMOTA(subHeader2s[0].idRangeOffset)/2) /* + offset */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment