Commit a6ea2816 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz

st/oxr: Tidy off by one error

parent 98c91ccb
Pipeline #30229 passed with stages
in 40 seconds
......@@ -128,7 +128,7 @@ oxr_verify_full_path(struct oxr_logger* log,
State state = State::Start;
bool valid = true;
if (length >= UINT32_MAX || length + 1 >= XR_MAX_PATH_LENGTH) {
if (length >= UINT32_MAX || (length + 1) > XR_MAX_PATH_LENGTH) {
return oxr_error(
log, XR_ERROR_PATH_FORMAT_INVALID,
"(%s) string is too long for a path (%u + 1) > %u", name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment