Tartarus CVS: putty: jacob

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Sun, 12 Oct 2003 14:16:42 +0100


CVS Root:       /usr/data/cvs
Module:         putty
Changes by:     jacob
Date:           Sun Oct 12 2003  14:16:41 BST

Log message:
Remove all the "assert(len>0)" which forbade zero-length writes across the
from_backend() interface, after having made all implementations safe against
being called with len==0 and possibly-NULL/undefined "data".
(This includes making misc.c:bufchain_add() more robust in this area.)
Assertion was originally added 2002-03-01; e.g., see plink.c:1.53.
I believe this now shouldn't break anything.
This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested
with Unix PuTTY.)

Modified files:
    .               : misc.c plink.c psftp.c scp.c terminal.c
    unix            : uxplink.c

Links:
http://cvs.tartarus.org//putty/misc.c.diff?r1=1.25&r2=1.26
http://cvs.tartarus.org//putty/plink.c.diff?r1=1.78&r2=1.79
http://cvs.tartarus.org//putty/psftp.c.diff?r1=1.67&r2=1.68
http://cvs.tartarus.org//putty/scp.c.diff?r1=1.111&r2=1.112
http://cvs.tartarus.org//putty/terminal.c.diff?r1=1.161&r2=1.162
http://cvs.tartarus.org//putty/unix/uxplink.c.diff?r1=1.25&r2=1.26