Bug 2683

Summary: memory leak in ssh_packet_read_seqnr
Product: Portable OpenSSH Reporter: Tom <trix>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal CC: djm
Priority: P5    
Version: -current   
Hardware: amd64   
OS: FreeBSD   
Bug Depends on:    
Bug Blocks: 2647    
Attachments:
Description Flags
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64 none

Description Tom 2017-02-26 06:59:30 AEDT
Created attachment 2948 [details]
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64

Memory leak was found with clang's static analyzer scan-build.
See attachment for location/fix.
Comment 1 Damien Miller 2017-02-28 17:11:39 AEDT
Applied. This will be in OpenSSH 7.5.

commit d7abb771bd5a941b26144ba400a34563a1afa589
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Tue Feb 28 06:10:08 2017 +0000

    upstream commit
    
    small memleak: free fd_set on connection timeout (though
    we are heading to exit anyway). From Tom Rix in bz#2683
    
    Upstream-ID: 10e3dadbb8199845b66581473711642d9e6741c4
Comment 2 Damien Miller 2021-04-23 14:57:37 AEST
closing resolved bugs as of 8.6p1 release