Files
rust/src/libcoretest
Ulrik Sverdrup 95be21df47 core: Fix size_hint for signed integer Range<T> iterators
There was an overflow bug in .size_hint() for signed iterators, which
produced an hilariously incorrect size or an overflow panic.

Incorrect size is a serious bug since the iterators are marked
ExactSizeIterator. (And leads to abort() on (-1i8..127).collect() when
the collection tries to preallocate too much).

All signed range iterators were affected.

> (-1i8..127).size_hint()
(18446744073709551488, Some(18446744073709551488))

Bug found using quickcheck.

Fixes #24851
2015-04-27 21:14:43 +02:00
..
2015-04-14 10:14:19 -07:00
2015-03-26 12:10:22 -07:00
2015-01-11 11:47:44 -08:00
2015-03-31 15:49:57 -07:00
2015-04-21 12:02:12 +02:00
2015-01-30 04:38:54 +01:00
2015-03-26 12:10:22 -07:00
2015-03-26 12:10:22 -07:00
2015-03-26 12:10:22 -07:00
2015-02-26 07:21:26 +02:00