jvmfwk/source/framework.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 0e23cabf2fd00f50e221f4eea7f19ceadc65fd54 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Mon Sep 30 20:45:41 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Oct 2 12:25:51 2024 +0200
cid#1606631 Overflowed constant Change-Id: I9ed28057b0435b78743303d1d6edea928598787b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174379 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx index be10c0569a9e..eea9cc92c388 100644 --- a/jvmfwk/source/framework.cxx +++ b/jvmfwk/source/framework.cxx @@ -168,6 +168,8 @@ std::vector<OUString> jfw_convertUserPathList(std::u16string_view sUserPath) } } result.emplace_back(sToken); + if (nextColon == std::u16string_view::npos) + break; nIdx = nextColon + 1; } while (nIdx > 0); return result;