Skip to content

Commit

Permalink
Merge pull request #64 from dscho/fix-out-of-bound-access-in-path-conv
Browse files Browse the repository at this point in the history
path_conv: backport forgotten part of msys2/msys2-runtime#179
  • Loading branch information
lazka authored Feb 28, 2024
2 parents 239510d + 871ae70 commit 6a57c6d
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 6a57c6d

Please sign in to comment.