[openssh-commits] [openssh] branch master updated (6df1fecb -> 911ec641)

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Aug 4 12:04:50 AEST 2021


This is an automated email from the git hooks/post-receive script.

dtucker pushed a change to branch master
in repository openssh.

      from  6df1fecb  use openbsd-compat glob.h is required
       new  911ec641  upstream: Allow for different (but POSIX compliant) behaviour of

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Detailed log of new commits:

commit 911ec6411821bda535d09778df7503b92f0eafab
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Wed Aug 4 01:34:55 2021 +0000

    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

Summary of changes:
 scp.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list