desktop/source/deployment/registry/configuration/dp_configuration.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 884dd38e57c6c655f0ecf3014a86e06fce366e83 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Jul 13 19:57:31 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sun Jul 14 15:14:09 2024 +0200 cid#1608572 silence Overflowed integer argument try to convince coverity of the errors of its ways Change-Id: I4e847f3773931dccaff1724166072bfde0b97941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170438 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx index e8f9cf607b9d..e3789008306f 100644 --- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx @@ -588,6 +588,8 @@ OUString replaceOrigin( index = nBytes; } + assert(index >= 0); + if ((write_pos + index) > filtered.size()) filtered.resize( (filtered.size() + index) * 2 ); memcpy( filtered.data() + write_pos, pBytes, index );