diff options
author | Jonathan Clark <jonathan@libreoffice.org> | 2025-03-19 03:41:58 -0600 |
---|---|---|
committer | Jonathan Clark <jonathan@libreoffice.org> | 2025-03-19 13:06:44 +0100 |
commit | 15aa055adfb8e52d593a3302e283ec15b03900ff (patch) | |
tree | db1db16c16b05f0993530745baa0212e32b9f147 /solenv/gbuild/InstallModule.mk | |
parent | 13df4f19a8bb849417fefeb883c90be32613e5b9 (diff) |
Fix ubsan out-of-range int in DOC export with CJK hanging indentation
As seen in:
> /include/o3tl/safeint.hxx:227:78: runtime error: -200 is outside the range of representable values of type 'unsigned short'
> #0 0x7f8cd335b5ec in unsigned short o3tl::narrowing<unsigned short, double>(double) /include/o3tl/safeint.hxx:227:78
> #1 0x7f8cd341698c in WW8AttributeOutput::FormatFirstLineIndent(SvxFirstLineIndentItem const&) /sw/source/filter/ww8/ww8atr.cxx:4358:32
during CppunitTest_sw_ww8export4::testTdf80596Hanging
(<https://ci.libreoffice.org/job/lo_ubsan/3500/>)
sprmPDxc* attributes contain signed 16-bit integers, as they may
correctly be negative in the case of hanging indentation. However, they
were previously serialized as if unsigned.
Change-Id: Id7f6ed465876d5c471ad3ed5c37134db98b0f8c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183122
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'solenv/gbuild/InstallModule.mk')
0 files changed, 0 insertions, 0 deletions