registry/source/reflwrit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 14f5d64771d5f1db73f8e992e8fbaf414d4c11aa Author: Stephan Bergmann <[email protected]> AuthorDate: Mon Nov 18 15:24:02 2024 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Nov 18 16:37:28 2024 +0100 Limit to len the number of UTF-16 code units being read Change-Id: I62bcf2919cb97d16811e9a59a63f1155437b6740 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176718 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index 318c3bbc2c55..854a4e0d865c 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; i++) + for (i = 0; i < len; i++) { sal_uInt16 aChar;
