mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
a403d0e675
The value and holder iterator code had a past-the-end iterator dereference. While of course invalid, the dereference didn't actually cause any problems (which is why it wasn't caught before) because the dereferenced value is never actually used and `vector` implementations appear to allow dereferencing the past-the-end iterator. Under a MSVC debug build, however, it fails a debug assertion and aborts. This amends the iterator to just store and use a pointer to the vector (rather than adding a second past-the-end iterator member), checking the type index against the type vector size. |
||
---|---|---|
.. | ||
attr.h | ||
buffer_info.h | ||
cast.h | ||
chrono.h | ||
class_support.h | ||
common.h | ||
complex.h | ||
descr.h | ||
eigen.h | ||
embed.h | ||
eval.h | ||
functional.h | ||
numpy.h | ||
operators.h | ||
options.h | ||
pybind11.h | ||
pytypes.h | ||
stl_bind.h | ||
stl.h | ||
typeid.h |