Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/Catch3/ToString.cpp
diff options
context:
space:
mode:
authorDirk Müller2026-05-07 09:39:12 +0200
committerMartin Hořeňovský2026-05-14 10:58:09 +0200
commit69e0473f6e98d47c93518424c08ee69ee632c0f0 (patch)
tree5f64c22778e3257222470b649460ea9bb9388cb0 /src/Progmasoft/Catch3/ToString.cpp
parent6ee0826dcae55ed1e06b2c5701981221e979e1e6 (diff)
downloadcatch3-69e0473f6e98d47c93518424c08ee69ee632c0f0.tar.gz
Avoid a potential underflow when iterating over invalid inputs
The forward iteration logic already bounds-check for m_it != m_string->end(), do the same for the backward iteration. The issue with the assert is that the assert() might not be compiled in, and it is happening after the dereference, so it was too late.
Diffstat (limited to 'src/Progmasoft/Catch3/ToString.cpp')
0 files changed, 0 insertions, 0 deletions