summaryrefslogtreecommitdiffstats
path: root/ssh_config.5
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-08-04 03:34:55 +0200
committerDarren Tucker <dtucker@dtucker.net>2021-08-04 04:04:33 +0200
commit911ec6411821bda535d09778df7503b92f0eafab (patch)
treee58161e09fc77deca0bc0fc7c2f6b2065272503c /ssh_config.5
parentuse openbsd-compat glob.h is required (diff)
downloadopenssh-911ec6411821bda535d09778df7503b92f0eafab.tar.xz
openssh-911ec6411821bda535d09778df7503b92f0eafab.zip
upstream: Allow for different (but POSIX compliant) behaviour of
basename(3) and prevent a use-after-free in that case in the new sftp-compat code. POSIX allows basename(3) to either return a pointer to static storage or modify the passed string and return a pointer to that. OpenBSD does the former and works as is, but on other platforms "filename" points into "tmp" which was just freed. This makes the freeing of tmp consistent with the other variable in the loop. Pinpointed by the -portable Valgrind regress test. ok djm@ deraadt@ OpenBSD-Commit-ID: 750f3c19bd4440e4210e30dd5d7367386e833374
Diffstat (limited to 'ssh_config.5')
0 files changed, 0 insertions, 0 deletions