svn rev #22034: branches/krb5-1-7/src/lib/krb5/krb/
tlyu@MIT.EDU
tlyu at MIT.EDU
Wed Feb 18 19:38:09 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22034
Commit By: tlyu
Log Message:
ticket: 6379
version_fixed: 1.7
status: resolved
pull up r21924 from trunk
------------------------------------------------------------------------
r21924 | ghudson | 2009-02-09 13:52:40 -0500 (Mon, 09 Feb 2009) | 10 lines
Changed paths:
M /trunk/src/lib/krb5/krb/walk_rtree.c
ticket: 6379
subject: Fix possible free of uninitialized value in walk_rtree
tags: pullup
target_version: 1.7
In rtree_hier_realms, if the first rtree_hier_tweens call failed, the
cleanup handler would free stweens which had not been initialized.
Initialize ctweens and stweens to NULL in the variable declarations to
make the cleanup handler safe.
------------------------------------------------------------------------
Changed Files:
U branches/krb5-1-7/src/lib/krb5/krb/walk_rtree.c
Modified: branches/krb5-1-7/src/lib/krb5/krb/walk_rtree.c
===================================================================
--- branches/krb5-1-7/src/lib/krb5/krb/walk_rtree.c 2009-02-19 00:37:45 UTC (rev 22033)
+++ branches/krb5-1-7/src/lib/krb5/krb/walk_rtree.c 2009-02-19 00:38:09 UTC (rev 22034)
@@ -365,7 +365,7 @@
{
krb5_error_code retval;
struct hstate c, s;
- krb5_data *ctweens, *stweens, *twp, *r, *rp;
+ krb5_data *ctweens = NULL, *stweens = NULL, *twp, *r, *rp;
size_t nctween, nstween;
*realms = NULL;
More information about the cvs-krb5
mailing list