Simon Tatham
896bb7c74d
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.
[originally from svn r9918]
2013-07-14 10:45:54 +00:00
..
2013-06-15 19:58:10 +00:00
2011-07-14 18:52:21 +00:00
2008-04-04 10:56:26 +00:00
2012-07-01 16:55:36 +00:00
2013-01-13 21:59:10 +00:00
2013-07-11 17:24:28 +00:00
2011-09-16 19:18:54 +00:00
2013-07-14 10:45:48 +00:00
2013-01-13 21:59:10 +00:00
2011-07-14 18:52:21 +00:00
2013-07-14 10:45:54 +00:00
2011-07-14 18:52:21 +00:00
2012-09-18 21:42:48 +00:00
2010-09-09 14:36:46 +00:00
2011-07-14 18:52:21 +00:00
2012-05-15 22:19:21 +00:00
2012-10-16 20:15:51 +00:00
2009-09-16 22:28:20 +00:00
2012-09-19 17:08:15 +00:00
2010-02-20 11:21:25 +00:00
2011-09-13 11:44:03 +00:00
2011-12-08 19:15:57 +00:00
2013-07-11 17:24:23 +00:00
2011-07-14 18:52:21 +00:00
2007-01-26 20:00:32 +00:00
2011-07-14 18:52:21 +00:00
2012-09-18 21:42:48 +00:00
2004-12-31 13:02:46 +00:00
2011-10-02 11:01:57 +00:00
2013-05-25 14:03:19 +00:00
2003-04-27 11:10:48 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00