Bug 1048

Summary: scp.c xstrdup() memory leak?
Product: Portable OpenSSH Reporter: flatline <flatline>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: normal    
Priority: P2    
Version: 4.1p1   
Hardware: All   
OS: All   

Description flatline 2005-05-29 00:43:53 AEST
20050403
 - (djm) OpenBSD CVS Sync
   - deraadt@cvs.openbsd.org 2005/03/31 18:39:21
     [scp.c]
     copy argv[] element instead of smashing the one that ps will see; ok otto

This addition uses xstrdup(), but fails to free the allocated buffer after use. 
I'm not sure how much of an impact this could have, but perhaps it could lead 
to a memory starvation DoS. I'm not including a patch here since the fix is too 
obvious.

Regards,
flatline
Comment 1 Damien Miller 2005-06-03 12:06:50 AEST
obviously wrong. Think about it.
Comment 2 Darren Tucker 2006-10-07 11:40:32 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.