[PATCH 6/12] bug fix: openssh-4.3p2 memory leak

This is a discussion on [PATCH 6/12] bug fix: openssh-4.3p2 memory leak within the OpenSSH Development forums, part of the Networking and Network Related category; cancel_address is allocated in packet_get_string and used in the call to channel_cancel_rport_listener and then it goes out of scope. This ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2006
Kylene Jo Hall
 
Posts: n/a
Default [PATCH 6/12] bug fix: openssh-4.3p2 memory leak

cancel_address is allocated in packet_get_string and used in the call to
channel_cancel_rport_listener and then it goes out of scope. This patch
adds the xfree. This entire set of patches passed the regression tests
on my system. Resource leak bug found by Coverity.

Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
---
serverloop.c | 1 +
1 files changed, 1 insertion(+)

diff -uprN openssh-4.3p2/serverloop.c openssh-4.3p2-kylie/serverloop.c
--- openssh-4.3p2/serverloop.c 2005-12-30 23:33:37.000000000 -0600
+++ openssh-4.3p2-kylie/serverloop.c 2006-05-03 16:52:06.000000000 -0500
@@ -1085,6 +1085,7 @@ server_input_global_request(int type, u_

success = channel_cancel_rport_listener(cancel_address,
cancel_port);
+ xfree(cancel_address);
}
if (want_reply) {
packet_start(success ?


_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0