Bug 1110

Summary: memory leak in bufaux.c, function: buffer_put_bignum_ret
Product: Portable OpenSSH Reporter: Ted Kremenek <kremenek>
Component: sshAssignee: Damien Miller <djm>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 4.2p1   
Hardware: Other   
OS: All   
Bug Depends on:    
Bug Blocks: 1047    
Attachments:
Description Flags
fix none

Description Ted Kremenek 2005-11-04 17:52:58 AEDT
In buffer_put_bignum_ret...

Memory allocated at:

        u_char *buf = xmalloc(bin_size);

is leaked on the following error path:

        if (oi != bin_size) {
              ... [ LEAK ]
Comment 1 Damien Miller 2005-11-05 15:51:45 AEDT
Created attachment 1024 [details]
fix

I'll commit this soon
Comment 2 Damien Miller 2005-11-05 16:01:14 AEDT
fix applied and will be in 4.3, thanks for the report.
Comment 3 Darren Tucker 2006-10-07 11:43:02 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.