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
..
2012-02-27 20:27:41 +01:00
2012-03-28 10:00:15 +02:00
2012-04-05 11:58:30 +09:00
2012-03-28 22:35:26 -07:00
2012-03-30 06:35:29 -04:00
2012-04-05 10:50:09 +02:00