Niels Lohmann
d2c1a6a272
Reject array insert(pos, first, last) iterators not pointing into an array ( #5468 )
...
The array-range insert() overload checked that pos fits the current
value and that first/last share the same owning value, but never
verified that value is itself an array. Passing iterators from an
object, a primitive, or null handed value-initialized (singular)
std::vector iterators straight to array_t::insert(), which is
undefined behavior. Add the missing is_array() check, mirroring the
equivalent check already present in the object-range insert()
overload.
Signed-off-by: Niels Lohmann <mail@nlohmann.me >
2026-09-22 21:52:31 +02:00
..
2026-01-01 20:00:39 +01:00
2026-09-16 20:20:22 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-16 20:15:46 +02:00
2026-09-09 09:50:39 +02:00
2026-07-31 18:04:30 +02:00
2026-07-08 16:40:58 +02:00
2026-07-09 20:18:28 +02:00
2026-09-15 20:46:37 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-16 20:20:22 +02:00
2026-09-11 08:34:45 +02:00
2026-09-16 20:15:46 +02:00
2026-01-01 20:00:39 +01:00
2026-09-12 21:09:33 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-10 17:20:48 +02:00
2026-09-22 21:35:00 +02:00
2026-09-05 09:43:07 +02:00
2026-01-01 20:00:39 +01:00
2026-07-09 20:38:39 +02:00
2026-01-01 20:00:39 +01:00
2026-09-11 08:22:50 +02:00
2026-09-16 20:15:46 +02:00
2026-09-15 20:46:37 +02:00
2026-01-01 20:00:39 +01:00
2026-09-15 20:46:37 +02:00
2026-09-15 20:46:37 +02:00
2026-08-03 08:35:53 +02:00
2026-09-11 08:18:43 +02:00
2026-09-15 20:46:28 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-07-02 06:35:35 +02:00
2026-07-02 15:59:36 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:52:58 +02:00
2026-09-09 09:52:58 +02:00
2026-01-01 20:00:39 +01:00
2026-07-09 20:38:39 +02:00
2026-01-01 20:00:39 +01:00
2026-09-16 20:15:46 +02:00
2026-09-15 20:46:37 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-22 21:52:31 +02:00
2026-09-12 21:09:33 +02:00
2026-09-16 20:15:46 +02:00
2026-09-09 09:48:17 +02:00
2026-09-16 20:15:46 +02:00
2026-01-01 20:00:39 +01:00
2026-09-16 20:15:20 +02:00
2026-09-22 21:52:30 +02:00
2026-05-18 20:33:47 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:52:58 +02:00
2026-09-22 21:52:31 +02:00
2026-09-16 20:15:46 +02:00
2026-09-16 20:11:19 +02:00
2026-09-16 20:15:46 +02:00
2026-01-01 20:00:39 +01:00
2026-01-01 20:00:39 +01:00
2026-08-03 08:35:53 +02:00
2026-09-12 21:09:33 +02:00
2026-01-01 20:00:39 +01:00
2026-05-16 10:04:22 +02:00
2026-01-01 20:00:39 +01:00
2026-09-09 09:50:39 +02:00
2026-09-09 09:50:39 +02:00
2026-09-16 20:16:43 +02:00
2026-09-16 20:16:43 +02:00
2026-09-16 20:16:43 +02:00
2026-09-10 17:20:48 +02:00
2026-01-01 20:00:39 +01:00
2026-08-05 13:43:36 +02:00
2026-01-01 20:00:39 +01:00