Michael Matz e80d6f94e1 Fix size parameter comparisions.
[BZ #13592]
There are several signed compares of the size argument, whereas
it really is unsigned.  Depending on situations e.g. a "memset(ptr, 0,
-1)" segfault (but for the wrong reasons, because jumping into nirvana)
or succeeds even.

In normal use this is harmless, as a size with signbit set indicates
more than half the address space which on x86_64 is impossible to
allocate, but as the size is used to index some jump tables this
potentially could have other unwanted side effects.
2012-04-05 10:50:09 +02:00
..
2007-10-16 05:59:15 +00:00
2012-03-28 09:18:28 +02:00
2012-03-28 09:18:28 +02:00
2012-02-14 13:50:44 +01:00
2012-02-14 13:50:44 +01:00
2012-03-22 10:02:57 -07:00
2007-06-08 02:50:59 +00:00
2012-04-05 10:50:09 +02:00
2012-03-22 08:28:39 -07:00
2012-03-19 20:55:26 +01:00
2004-05-28 06:56:51 +00:00
2012-01-07 23:57:22 -05:00
2004-07-10 20:00:44 +00:00