Skip to content

Commit

Permalink
path_conv: backport forgotten part of msys2/msys2-runtime#179
Browse files Browse the repository at this point in the history
In msys2/msys2-runtime#179 ("Fix out-of-bound
access in path conversion"), _two_ instances were fixed where `it` was
used when `it2` should have been used instead.

In 3a20d2f (Sync path_conv.pp with msys2-runtime, 2023-12-22), only one
of those fixes was applied. Let's apply the other one, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 27, 2024
1 parent 239510d commit 871ae70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/path_convert/src/path_conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ path_type find_path_start_and_type(const char** src, int recurse, const char* en
goto skip_p2w;
return POSIX_PATH_LIST;
}
} else if (memchr(it2, '=', end - it) == NULL) {
} else if (memchr(it2, '=', end - it2) == NULL) {
return SIMPLE_WINDOWS_PATH;
}
} else if (ch != '.') {
Expand Down

0 comments on commit 871ae70

Please sign in to comment.