diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-11-18 15:24:02 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-11-18 16:37:28 +0100 |
commit | 14f5d64771d5f1db73f8e992e8fbaf414d4c11aa (patch) | |
tree | 5665bd89346d3d8a83e98344db6f1401ecd28a74 | |
parent | f41701a71b261fd7d3d935f600e61c17fd8ec7e0 (diff) |
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 <stephan.bergmann@allotropia.de>
-rw-r--r-- | registry/source/reflwrit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |