diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-09 09:45:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-09 14:06:22 +0200 |
commit | 1064ff57880dc6d35deb4ddc9aa83d2a5273aa4a (patch) | |
tree | e5f374a49c2685af5101b943b38c08c0016ebe77 /lotuswordpro | |
parent | 22d7f7b3a5d9bde58a3b6e59f5c9117faaea4673 (diff) |
ofz: Invalid-enum-value
extend
commit 9d1c8e66f7020fa0150b23bd450e514f848bd20b
Date: Tue Apr 5 12:35:54 2016 +0200
UBSan: Restrict BorderWidthType values to valid range on input
to the other assignment to m_eRightType
Change-Id: I712a16974e25d3cc48ecfc223a84264ef4bf1642
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104107
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpparaborderoverride.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpparaborderoverride.cxx b/lotuswordpro/source/filter/lwpparaborderoverride.cxx index 4d372ae5b763..c0919cd7a265 100644 --- a/lotuswordpro/source/filter/lwpparaborderoverride.cxx +++ b/lotuswordpro/source/filter/lwpparaborderoverride.cxx @@ -152,7 +152,7 @@ void LwpParaBorderOverride::Read(LwpObjectStream *pStrm) if( pStrm->CheckExtra() ) { - m_eRightType = static_cast<BorderWidthType>(pStrm->QuickReaduInt16()); + m_eRightType = readBorderWidthType(pStrm); m_nRightWidth = pStrm->QuickReaduInt32(); } } |