filter/source/graphicfilter/ios2met/ios2met.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 79358b117293e1c44efd4774bdd7095a1306af95 Author: Caolán McNamara <[email protected]> Date: Tue Oct 31 14:02:10 2017 +0000 ofz#3948 Integer-overflow Change-Id: I4bb7d6012b18221706b05c4c8a4e09e6aac1dac6 Reviewed-on: https://gerrit.libreoffice.org/44119 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx index 43887ace6d58..be64a2faa2d3 100644 --- a/filter/source/graphicfilter/ios2met/ios2met.cxx +++ b/filter/source/graphicfilter/ios2met/ios2met.cxx @@ -1980,8 +1980,8 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen) { pOS2MET->SeekRel( 1 ); sal_Int32 nWd = ReadCoord( bCoord32 ); - if ( nWd < 0 ) - nWd = -nWd; + if (nWd < 0) + nWd = o3tl::saturating_toggle_sign(nWd); aAttr.nStrLinWidth = (sal_uInt16)nWd; } break;
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
