editeng/source/editeng/impedit2.cxx | 1 + registry/source/reflwrit.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
New commits: commit 68110da8242677d67a48ad04e4279f7220da2086 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Sep 29 12:07:41 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Sep 29 18:05:14 2024 +0200 cid#1606852 Overflowed constant Change-Id: Ib77efd3069d81a9c4b6cdb78e795def327e27368 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174179 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index 5304d03463c8..318c3bbc2c55 100644 --- a/registry/source/reflwrit.cxx +++ b/registry/source/reflwrit.cxx @@ -62,7 +62,7 @@ sal_uInt32 readString(const sal_uInt8* buffer, sal_Unicode* v, sal_uInt32 maxSiz len = maxSize / 2; } - for (i = 0; i < (len - 1); i++) + for (i = 0; i <= len; i++) { sal_uInt16 aChar; commit c2aad1b6b7e5c7976969824bb8707483333d9f24 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Sep 29 12:00:14 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Sep 29 18:05:05 2024 +0200 cid#1606889 Overflowed constant Change-Id: I5c0b458aca0ffc1b16eba31ace4039cd359160f1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174178 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 91a4456989cb..a4276e7daba9 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -790,6 +790,7 @@ void ImpEditEngine::ParaAttribsChanged( ContentNode const * pNode, bool bIgnoreU pPortion->MarkSelectionInvalid( 0 ); sal_Int32 nPara = maEditDoc.GetPos( pNode ); + assert( nPara != EE_PARA_NOT_FOUND ); if (bIgnoreUndoCheck || mpEditEngine->IsInUndo()) mpEditEngine->ParaAttribsChanged( nPara );