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.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2024-10-02 12:25:51 +02:00
parent dba433c1ee
commit 0e23cabf2f
+2
View File
@@ -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;