Eric Sesterhenn / Snakebyte
3964994bb5
KVM: Fix overflow bug in overflow detection code
...
The expression
sp - 6 < sp
where sp is a u16 is undefined in C since 'sp - 6' is promoted to int,
and signed overflow is undefined in C. gcc 4.2 actually warns about it.
Replace with a simpler test.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
2007-05-03 10:52:29 +03:00
..
2007-04-30 16:40:40 -07:00
2007-04-27 10:57:29 -07:00
2007-04-30 17:43:48 -07:00
2007-04-26 01:41:49 -07:00
2007-04-27 10:57:34 -07:00
2007-04-27 13:28:34 -07:00
2007-04-25 22:28:23 -07:00
2007-04-30 08:10:12 -07:00
2007-04-25 14:27:06 -04:00
2007-04-25 22:29:03 -07:00
2007-03-27 08:55:56 -07:00
2007-03-06 09:30:25 -08:00
2007-03-16 19:25:03 -07:00
2007-03-27 09:05:15 -07:00
2007-04-30 08:58:21 -07:00
2007-04-30 12:38:01 +10:00
2007-04-17 16:36:28 -07:00
2007-04-27 10:57:30 -07:00
2007-04-30 00:00:33 +02:00
2007-04-30 12:38:01 +10:00
2007-04-27 10:57:30 -07:00
2007-04-25 22:28:29 -07:00
2007-05-03 10:52:29 +03:00
2007-04-30 12:38:01 +10:00
2007-04-30 09:08:17 +02:00
2007-04-30 08:10:12 -07:00
2007-04-25 22:28:23 -07:00
2007-04-02 10:06:08 -07:00
2007-04-28 23:11:19 -04:00
2007-04-27 10:57:29 -07:00
2007-04-27 23:34:21 +01:00
2007-04-30 08:14:42 -07:00
2007-03-28 13:58:02 -07:00
2007-04-28 21:04:03 -07:00
2007-04-23 23:33:17 -07:00
2007-04-29 10:48:21 -07:00
2007-04-08 19:47:55 -07:00
2007-04-27 10:57:30 -07:00
2007-04-30 13:03:39 +10:00
2007-04-02 10:06:09 -07:00
2007-04-27 10:57:32 -07:00
2007-04-26 01:54:59 -07:00
2007-04-30 08:12:39 -07:00
2007-04-30 12:38:01 +10:00
2007-04-17 16:36:27 -07:00
2007-04-04 21:12:47 -07:00
2007-04-30 08:58:21 -07:00
2007-04-30 12:38:01 +10:00
2007-04-18 20:20:53 -07:00