Skip Menu |
 

Subject: Initialize buffer before calling res_ninit
commit gate failed; creating manually

From: rra@MIT.EDU
Subject: svn rev #18669: trunk/src/lib/krb5/os/
To: cvs-krb5@mit.edu
Date: Sat, 7 Oct 2006 23:22:49 -0400 (EDT)
Reply-To: krbdev@MIT.EDU

Commit By: rra
Log Message:
Ticket: new
Subject: Initialize buffer before calling res_ninit
Component: krb5-libs
Version_Reported: 1.5.1
Target_Version: 1.5.2
Tags: pullup

Per Paul Vixie: It is necessary to zero out the statbuf before calling
res_ninit(), or else res_vinit() will call res_nclose() and res_ndestroy()
with stack trash as a statbuf, and they will call free() with stack trash,
and programs will dump core.



Changed Files:
U trunk/src/lib/krb5/os/dnsglue.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18669 from trunk

r18669@cathode-dark-space: rra | 2006-10-07 23:22:48 -0400
Ticket: new
Subject: Initialize buffer before calling res_ninit
Component: krb5-libs
Version_Reported: 1.5.1
Target_Version: 1.5.2
Tags: pullup

Per Paul Vixie: It is necessary to zero out the statbuf before calling
res_ninit(), or else res_vinit() will call res_nclose() and res_ndestroy()
with stack trash as a statbuf, and they will call free() with stack trash,
and programs will dump core.



Commit By: tlyu



Revision: 18742
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/lib/krb5/os/dnsglue.c