Hacker News new | ask | show | jobs
by dataflow 580 days ago
> Cool, let me know how to improve the code security on my vendor compiler then, I'll be waiting.

Switch to std::span and add 1 line to std::span::operator[] to check your bounds...

1 comments

I don't think std::span is bounds checked. Try again.
> I don't think std::span is bounds checked. Try again.

That's why I said add 1 line to std::span::operator[] to check your bounds.

I'm telling you to modify the STL header. It's a text file. Add 1 line to make it bounds-checked.