Does valgrind work with STL allocator? I am using STL vector with plain C library in the follwing fashion:
double some_C_functions(int, double*);
std::vector<double> v;
.....
double result = some_C_functions(v.size(), &v[0]);
What if the C functions tries to overshoot the pointer? Can valgrind detect the error?