simon-svn: putty: simon
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Feb 22 18:02:15 GMT 2014
SVN root: svn://svn.tartarus.org/sgt
Changes by: simon
Revision: 10144
Date: 2014-02-22 18:02:14 +0000 (Sat, 22 Feb 2014)
Log message (11 lines):
Add some assertions in sshzlib.c.
gcc 4.8 compiling with -O3 gives a new warning about the access to
st->pending at the top of lz77_compress, because for some reason it
thinks there's an out-of-bounds array access there (or perhaps just a
potential one, I'm not really sure which side -Warray-bounds is erring
on). Add an assertion reassuring it that st->npending can't get bigger
than the size of st->pending at the site it's complaining about, and a
second one at the site where st->npending is increased (just in case
my analysis of why it can't happen was wrong!). Also add a comment
explaining the assertions.
Modified files:
U putty/sshzlib.c
Links:
http://svn.tartarus.org/sgt/?rev=10144&view=rev
http://svn.tartarus.org/sgt/putty/sshzlib.c?rev=10144&r1=10143&r2=10144
More information about the tartarus-commits
mailing list