From bd84bd35e9a64638d7434ef00e4b75f71da7ebfd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 9 Dec 2025 09:41:13 +0200 Subject: [PATCH] ubsan: fix downcast (2) svx/source/svdraw/svdedtv1.cxx:1011:56: runtime error: downcast of address 0x7bd2deeea930 which does not point to an object of type 'const SfxUInt16Item' 0x7bd2deeea930: note: object is of type 'XFillTransparenceItem' 00 00 00 00 90 ee bd 84 a2 7b 00 00 00 00 00 00 fb 03 be be 17 02 00 00 89 be 00 00 00 00 00 00 ^~~~~~~~~~~~~~~~~~~~~~~ vptr for 'XFillTransparenceItem' after commit 953219b81126f5c092bf5375c0abe2a7afce40d2 Author: Noel Grandin Date: Wed Dec 3 21:34:19 2025 +0200 make XFillTransparenceItem extend SfxPoolItem Change-Id: Id29305cf0a7b7431207aaa7f8ede639f035a630e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195276 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svdedtv1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx index ef9c36668a72..94bfea69508a 100644 --- a/svx/source/svdraw/svdedtv1.cxx +++ b/svx/source/svdraw/svdedtv1.cxx @@ -1008,7 +1008,7 @@ void SdrEditView::MergeAttrFromMarked(SfxItemSet& rAttr, bool bOnlyHardAttr) con const SfxPoolItem* pItem = rSet.GetItem(XATTR_FILLTRANSPARENCE); if (pItem) { - sal_uInt16 nTransparency = static_cast(pItem)->GetValue(); + sal_uInt16 nTransparency = static_cast(pItem)->GetValue(); sPayload = OUString::number(nTransparency); sPayload = ".uno:FillTransparence=" + sPayload;