path: root/regress/
diff options
mode: <>2021-08-04 01:34:55 +0000
committerDarren Tucker <>2021-08-04 12:04:33 +1000
commit911ec6411821bda535d09778df7503b92f0eafab (patch)
treee58161e09fc77deca0bc0fc7c2f6b2065272503c /regress/
parent6df1fecb5d3e51f3a8027a74885c3a44f6cbfcbd (diff)
upstream: Allow for different (but POSIX compliant) behaviour ofHEADmaster
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 'regress/')
0 files changed, 0 insertions, 0 deletions