diff options
author | Paul Smith <psmith@gnu.org> | 2022-06-17 19:55:11 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-06-17 19:55:11 -0400 |
commit | 97e51c0285109ebb6bf8be3d1e21cb0bd5058e5a (patch) | |
tree | 8f510cde04c25f9f3c0a57fa73ee2495d43a30f3 /build_w32.bat | |
parent | 59abb46bc9a4e4845c2797e17b5986eb2d528649 (diff) | |
download | make-git-97e51c0285109ebb6bf8be3d1e21cb0bd5058e5a.tar.gz |
Avoid overwriting buffers with long pathnames
Reported, with initial patch, by Gisle Vanem <gvanem@online.no>
* src/main.c (find_and_set_default_shell) [W32]: Pass search_token
directly to w32ify: no need to make a copy first. When we need to
construct a path, use snprintf() to be sure we don't overwrite
the locally-allocated buffer.
* src/w32/pathstuff.c (w32ify) [W32]: Use the malloc version of
_fullpath(), followed by strncpy(), to avoid overwriting buffers.
Diffstat (limited to 'build_w32.bat')
0 files changed, 0 insertions, 0 deletions