summaryrefslogtreecommitdiff
path: root/build_w32.bat
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-06-17 19:55:11 -0400
committerPaul Smith <psmith@gnu.org>2022-06-17 19:55:11 -0400
commit97e51c0285109ebb6bf8be3d1e21cb0bd5058e5a (patch)
tree8f510cde04c25f9f3c0a57fa73ee2495d43a30f3 /build_w32.bat
parent59abb46bc9a4e4845c2797e17b5986eb2d528649 (diff)
downloadmake-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