
The candidate selection code used default values that would cause reads past buffers. The code could also dereference the end iterator which causes undefined behavior.
The candidate selection code used default values that would cause reads past buffers. The code could also dereference the end iterator which causes undefined behavior.