Jouni Malinen
40762fcede
PCSC: Avoid undefined behavior in pointer arithmetic
...
Reorder terms in a way that no invalid pointers are generated with
pos+len operations. end-pos is always defined (with a valid pos pointer)
while pos+len could end up pointing beyond the end pointer which would
be undefined behavior.
Signed-off-by: Jouni Malinen <j@w1.fi>
2015-10-25 15:35:00 +02:00
..
2009-12-05 21:39:41 +02:00
2014-12-08 11:07:56 +02:00
2012-02-11 19:39:36 +02:00
2015-03-14 13:50:12 +02:00
2013-04-27 22:16:40 +03:00
2014-12-26 13:20:57 +02:00
2014-12-26 13:20:57 +02:00
2015-08-13 21:14:01 +03:00
2014-03-12 01:09:21 +02:00
2014-03-12 01:09:21 +02:00
2013-07-09 15:20:17 +03:00
2015-10-14 19:28:57 +03:00
2015-07-27 00:47:19 +03:00
2013-05-14 16:46:38 +03:00
2014-03-31 12:30:50 +03:00
2014-03-31 12:30:50 +03:00
2012-08-05 20:46:34 +03:00
2014-01-07 10:45:10 +02:00
2015-07-23 18:39:35 +03:00
2014-01-07 10:45:10 +02:00
2012-08-03 22:15:42 +03:00
2014-07-02 12:38:48 +03:00
2012-08-03 22:15:42 +03:00
2012-08-03 22:15:42 +03:00
2015-10-10 00:06:14 +03:00
2014-03-12 01:09:22 +02:00
2015-07-17 21:57:07 +03:00
2014-05-26 17:21:44 +03:00
2014-05-26 17:21:44 +03:00
2015-02-21 17:34:37 +02:00
2013-11-24 19:16:12 +02:00
2015-08-27 18:06:05 +03:00
2015-08-27 18:06:05 +03:00
2015-10-15 16:14:30 +03:00
2015-08-27 18:06:05 +03:00
2015-08-27 18:06:05 +03:00
2015-10-25 15:35:00 +02:00
2013-11-17 16:47:38 +02:00
2014-04-24 12:15:32 +03:00
2014-04-13 23:49:59 +03:00
2015-07-07 16:25:06 +03:00
2014-04-13 23:49:59 +03:00
2012-02-11 19:39:36 +02:00
2015-01-10 17:35:53 +02:00
2015-01-07 13:19:43 +02:00
2015-07-23 18:39:02 +03:00
2014-12-08 11:42:07 +02:00
2012-02-11 19:39:36 +02:00
2015-08-03 17:44:55 +03:00
2015-08-03 17:44:55 +03:00
2015-07-07 16:25:06 +03:00
2015-01-05 18:02:04 +02:00
2014-03-12 01:09:22 +02:00
2014-03-12 01:09:22 +02:00
2014-03-31 12:25:13 +03:00