vcl/source/fontsubset/sft.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 29a2296af8c0d0e6a630bce1c064e1211047d014
Author: Caolán McNamara <[email protected]>
AuthorDate: Wed Jul 24 11:37:16 2019 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Wed Jul 24 17:05:43 2019 +0200
cid#1448301 silence Untrusted loop bound
Change-Id: Ib5b592fdcf234a78747058eb3cdc7efc5d9cddc6
Reviewed-on: https://gerrit.libreoffice.org/76251
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx
index 2e974a10d3c6..e9aae0ba9356 100644
--- a/vcl/source/fontsubset/sft.cxx
+++ b/vcl/source/fontsubset/sft.cxx
@@ -436,6 +436,7 @@ static int GetSimpleTTOutline(TrueTypeFont const *ttf,
sal_uInt32 glyphID, Contr
pa[i++].flags = static_cast<sal_uInt32>(flag);
if (flag & 8) { /*- repeat flag */
n = *p++;
+ // coverity[tainted_data] - i > lastPoint extra checks the n loop
bound
for (j=0; j<n; j++) {
if (i > lastPoint) { /*- if the font is
really broken */
free(pa);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits