Johannes Weiss
191a06b756
security: ByteBuffer: fix heap buffer overflow on slice realloc
...
Motivation:
ByteBuffer had a very bad (exploitable!) security vulnerability if the
following conditions are all true:
- user writes to a ByteBuffer which is a slice (slice.lowerBound != 0)
- the slice is uniquely referenced (ie. the buffer that it was sliced
from is gone)
- the write triggers a re-allocation
Then the slice is actually _larger_ than the overall available capacity
so another write to said ByteBuffer could end up out of bounds.
Modifications:
- fixed slice reallocation
Result:
- fixed security vulnerability
2018-06-27 17:26:02 +01:00
..
2018-03-15 21:23:19 +01:00
2018-03-15 21:23:19 +01:00
2018-03-12 13:27:42 +01:00
2018-02-21 20:16:28 +01:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-06-27 17:26:02 +01:00
2018-06-27 17:26:02 +01:00
2018-03-14 23:20:29 +09:00
2018-03-14 23:20:29 +09:00
2018-03-16 17:49:19 +09:00
2018-03-16 17:49:19 +09:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-02-08 13:12:30 +00:00
2018-02-21 20:16:28 +01:00
2018-03-16 10:10:50 +01:00
2018-03-16 10:10:50 +01:00
2018-03-16 17:36:17 +09:00
2018-03-16 17:36:17 +09:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-03-11 22:47:29 +09:00
2018-02-21 20:16:28 +01:00
2018-03-16 12:44:49 +01:00
2018-03-16 12:44:49 +01:00
2018-03-15 16:05:35 +01:00
2018-03-15 16:05:35 +01:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-03-16 17:36:17 +09:00
2018-02-21 20:16:28 +01:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2017-10-02 11:36:29 +01:00
2018-02-21 20:16:28 +01:00
2018-02-28 09:46:29 +00:00
2018-02-21 20:16:28 +01:00
2018-02-26 15:52:49 +00:00
2018-02-23 13:09:00 +01:00
2018-03-02 15:40:52 +09:00
2018-02-21 20:16:28 +01:00
2018-03-16 17:36:17 +09:00
2018-03-08 20:22:42 +09:00
2018-03-16 10:32:15 +01:00
2018-03-13 15:09:13 +00:00
2018-03-02 15:40:52 +09:00
2018-02-28 09:46:29 +00:00
2018-02-21 20:16:28 +01:00
2018-03-15 21:23:19 +01:00
2018-02-16 17:28:43 +00:00
2018-02-21 20:16:28 +01:00
2018-03-02 21:56:33 +09:00
2018-02-21 20:16:28 +01:00
2018-03-03 09:04:57 +09:00
2018-03-03 09:04:57 +09:00