]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
Fix corruption when using batch files with comments and broken lines.
authorAndreas Henriksson <andreas@fatal.se>
Fri, 12 Oct 2007 08:56:42 +0000 (10:56 +0200)
committerStephen Hemminger <shemminger@linux-foundation.org>
Wed, 17 Oct 2007 17:02:33 +0000 (10:02 -0700)
commitd21e88354b2a42b026384730a767f2108bcf8efe
tree949ed0f52bd2f574754e15e9be0dd9e546107cf1
parent59a3ffb004cfd550cbe0ab805c9a15682b88d78f
Fix corruption when using batch files with comments and broken lines.
The problem was that length of allocation changed but caller not told.

Anyway, the patch fixes a problem resulting in a double free
that occurs when using batch files that contains a special combination
of broken up lines and comments as reported in:
http://bugs.debian.org/398912

Thanks to Michal Pokrywka <mpokrywka@hoga.pl> for testcase and information
on which conditions problem could be reproduced under.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
include/utils.h
lib/utils.c