pybind11/include/pybind11
Jason Rhinelander a403d0e675 Fix past-the-end dereference in values_and_holders
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.
2017-07-12 10:48:18 -04:00
..
attr.h Use std::type_info::name() for type lookups outside stdlibc++ 2017-06-24 10:46:33 -03:00
buffer_info.h Convenience constructor templates for buffer_info (#860) 2017-05-29 03:13:55 +02:00
cast.h Fix past-the-end dereference in values_and_holders 2017-07-12 10:48:18 -04:00
chrono.h Fix for floating point durations 2017-03-11 23:04:16 -04:00
class_support.h Hold strong references to keep_alive patients 2017-06-24 12:59:46 -04:00
common.h Override deduced Base class when defining Derived methods 2017-07-03 17:28:45 -04:00
complex.h Allow std::complex field with PYBIND11_NUMPY_DTYPE (#831) 2017-05-10 11:36:24 +02:00
descr.h Fix gcc 7 warning 2017-05-10 10:42:23 -04:00
eigen.h Fix indirect loading of Eigen::Ref 2017-06-29 11:31:54 +02:00
embed.h Destroy internals if created during Py_Finalize() 2017-06-08 16:42:06 -03:00
eval.h Fix missing default globals in eval/exec when embedding 2017-06-07 11:44:30 +02:00
functional.h Use std::type_info::name() for type lookups outside stdlibc++ 2017-06-24 10:46:33 -03:00
numpy.h Help CLion IDE evaluate PYBIND11_NUMPY_DTYPE 2017-06-23 12:56:15 +02:00
operators.h Define both __div__ and __truediv__ for Python 2 2017-05-21 19:15:25 -04:00
options.h Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
pybind11.h Fix compilation with Intel's compiler 2017-07-06 11:06:51 +02:00
pytypes.h Fix unsigned error value casting 2017-07-02 15:27:51 -04:00
stl_bind.h Fix invalid memory access in vector insert method 2017-05-25 10:51:28 -04:00
stl.h Use rvalue subcasting when casting an rvalue container 2017-07-05 12:27:14 -04:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00