diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-09-29 12:07:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-29 18:05:14 +0200 |
commit | 68110da8242677d67a48ad04e4279f7220da2086 (patch) | |
tree | 38510a3cf1f5634606f7f6a2d9fa200fd8820d26 /registry | |
parent | c2aad1b6b7e5c7976969824bb8707483333d9f24 (diff) |
cid#1606852 Overflowed constant
Change-Id: Ib77efd3069d81a9c4b6cdb78e795def327e27368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174179
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'registry')
-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 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; |