[krbdev.mit.edu #4500] Initialize buffer before calling res_ninit

Tom Yu via RT rt-comment at krbdev.mit.edu
Mon Oct 23 17:08:34 EDT 2006


commit gate failed; creating manually

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




More information about the krb5-bugs mailing list