Mans Rullgard
88d1e2b2b0
intfloat_readwrite: fix signed addition overflows
...
These additions might overflow the signed range for large
input values. Converting to unsigned before the addition
rather than after avoids such undefined behaviour. The
result under normal two's complement wraparound remains
unchanged.
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-10-11 14:42:28 +01:00
..
2011-06-23 07:31:54 +01:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-05-12 11:41:59 +02:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-09-26 15:30:31 -07:00
2011-06-30 16:50:27 +01:00
2011-03-19 13:33:20 +00:00
2011-07-04 11:07:15 +01:00
2011-03-19 13:33:20 +00:00
2011-06-23 20:17:44 +03:00
2011-09-11 18:41:34 +02:00
2011-03-19 13:33:20 +00:00
2011-05-21 13:48:10 +02:00
2011-03-19 13:33:20 +00:00
2011-06-23 20:17:46 +03:00
2011-09-26 15:30:31 -07:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-04-29 20:01:04 +02:00
2011-03-19 13:33:20 +00:00
2011-06-24 00:37:49 +02:00
2011-09-26 15:30:31 -07:00
2011-09-26 15:30:31 -07:00
2011-03-19 13:33:20 +00:00
2011-10-09 16:53:31 +01:00
2011-03-19 13:33:20 +00:00
2011-09-21 08:28:20 +02:00
2011-09-21 08:28:20 +02:00
2011-06-16 20:24:56 +02:00
2011-07-08 18:29:27 +02:00
2011-04-21 16:48:29 +02:00
2011-04-21 16:48:29 +02:00
2011-09-22 08:13:55 +02:00
2011-04-19 19:03:44 +02:00
2011-08-26 20:54:36 +02:00
2011-08-27 14:00:54 +02:00
2011-07-03 21:42:07 +01:00
2011-07-01 15:12:33 +02:00
2011-07-03 21:42:07 +01:00
2011-07-03 18:30:02 +02:00
2011-06-08 07:43:45 +02:00
2011-10-11 14:42:28 +01:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-06-16 20:49:19 +02:00
2011-06-07 10:31:26 +02:00
2011-03-19 13:33:20 +00:00
2011-07-03 18:30:02 +02:00
2010-01-16 04:49:02 +00:00
2011-04-21 14:13:09 +03:00
2011-07-11 21:09:27 +01:00
2011-03-19 13:33:20 +00:00
2011-05-08 13:34:05 -07:00
2011-06-23 20:17:46 +03:00
2011-06-24 00:37:49 +02:00
2011-07-02 13:52:29 +02:00
2011-08-26 20:54:36 +02:00
2011-06-28 13:14:46 +02:00
2011-03-19 13:33:20 +00:00
2011-07-03 18:19:19 +01:00
2011-03-19 13:33:20 +00:00
2011-04-26 18:18:22 +02:00
2011-07-15 02:01:22 +02:00
2011-10-10 20:27:31 +02:00
2011-10-10 20:27:30 +02:00
2011-07-14 04:09:49 +02:00
2011-07-14 04:09:49 +02:00
2011-07-12 08:13:56 -07:00
2011-05-28 09:44:18 -04:00
2011-06-29 11:56:56 +02:00
2011-07-17 20:47:39 +01:00
2011-06-30 21:19:16 +02:00
2011-06-30 01:35:47 +02:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-06-24 00:37:49 +02:00
2011-06-07 13:06:41 -04:00
2011-06-07 13:06:41 -04:00
2011-07-04 11:16:52 +01:00
2011-03-19 13:33:20 +00:00
2011-07-15 00:52:09 +02:00
2011-03-19 13:33:20 +00:00
2011-03-19 13:33:20 +00:00
2011-04-26 08:38:57 +02:00
2011-03-19 13:33:20 +00:00