Gilles Peskine
42a1acfd0e
get_len_step: Fix end-of-buffer calculation when buffer_size==0
...
Fix get_len_step when buffer_size==0. The intent of this test is to
ensure (via static or runtime buffer overflow analysis) that
mbedtls_asn1_get_len does not attempt to access beyond the end of the
buffer. When buffer_size is 0 (reached from get_len when parsing a
1-byte buffer), the buffer is buf[1..1] because allocating a 0-byte
buffer might yield a null pointer rather than a valid pointer. In this
case the end of the buffer is p==buf+1, not buf+buffer_size which is
buf+0.
The test passed because calling mbedtls_asn1_get_len(&p,end,...) with
end < p happens to work, but this is not guaranteed.
2020-01-21 16:12:07 +01:00
..
2019-11-15 11:47:14 +01:00
2019-11-15 11:47:14 +01:00
2019-11-29 12:17:21 +01:00
2019-10-04 12:30:01 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:58:27 +02:00
2019-08-15 15:44:50 +01:00
2019-10-31 19:17:36 +02:00
2020-01-21 16:12:07 +01:00
2019-10-31 19:17:36 +02:00
2019-10-31 19:17:36 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-07-29 17:46:29 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-09-04 10:18:11 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-09-20 16:01:59 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-11-21 13:49:20 +01:00
2019-10-23 19:47:05 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-09-05 11:18:58 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-10-08 15:01:34 +02:00
2019-11-25 19:50:54 +01:00
2015-04-08 13:25:31 +02:00
2018-08-06 11:40:57 +01:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-10-23 19:46:56 +02:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-10-31 15:07:35 +01:00
2019-10-31 15:07:45 +01:00
2019-11-05 15:13:00 +00:00
2019-11-04 10:39:20 +00:00
2019-09-20 15:59:31 +02:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-11-12 13:21:53 +01:00
2019-11-26 18:20:59 +01:00
2019-08-15 15:44:50 +01:00
2019-09-24 11:22:51 +03:00
2019-09-20 15:58:54 +02:00
2019-09-24 11:22:04 +03:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-11-05 15:32:53 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2018-11-21 16:24:53 +02:00
2019-06-20 12:40:56 +02:00
2018-11-05 18:36:05 +02:00
2019-06-20 12:40:56 +02:00
2019-10-23 19:47:05 +02:00
2019-10-23 19:47:05 +02:00
2019-12-12 09:00:27 +01:00
2019-12-12 09:00:27 +01:00
2019-12-12 09:00:27 +01:00
2019-12-12 09:00:26 +01:00
2019-10-01 15:22:29 +02:00
2019-11-26 18:20:59 +01:00
2019-10-01 14:18:35 +02:00
2019-11-26 18:20:59 +01:00
2019-11-26 18:20:59 +01:00
2019-10-11 11:44:48 +02:00
2019-12-12 09:00:27 +01:00
2019-12-12 09:00:26 +01:00
2019-03-15 11:37:09 +01:00
2019-07-31 17:47:49 +02:00
2019-09-24 11:21:36 +03:00
2019-09-24 11:21:36 +03:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00
2019-09-18 13:42:36 +01:00
2018-08-06 11:40:57 +01:00
2019-08-15 15:44:50 +01:00
2019-08-15 15:44:50 +01:00