simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Jul 14 11:45:54 BST 2013


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9918
Date:           2013-07-14 11:45:54 +0100 (Sun, 14 Jul 2013)

Log message (6 lines):
Tighten up a lot of casts from unsigned to int which are read by one
of the GET_32BIT macros and then used as length fields. Missing bounds
checks against zero have been added, and also I've introduced a helper
function toint() which casts from unsigned to int in such a way as to
avoid C undefined behaviour, since I'm not sure I trust compilers any
more to do the obviously sensible thing.

Modified files:
U   putty/conf.c
U   putty/import.c
U   putty/misc.c
U   putty/misc.h
U   putty/sftp.c
U   putty/ssh.c
U   putty/sshdss.c
U   putty/sshpubk.c
U   putty/sshrsa.c
U   putty/unix/uxagentc.c
U   putty/windows/winpgnt.c

Links:
http://svn.tartarus.org/sgt/?rev=9918&view=rev
http://svn.tartarus.org/sgt/putty/conf.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/import.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/misc.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/misc.h?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/sftp.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/ssh.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/sshdss.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/sshpubk.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/sshrsa.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/unix/uxagentc.c?rev=9918&r1=9917&r2=9918
http://svn.tartarus.org/sgt/putty/windows/winpgnt.c?rev=9918&r1=9917&r2=9918



More information about the tartarus-commits mailing list