Closed etam closed 4 months ago
Now I get this! I compiled it with -Og
, not -O2
, so things are not optimized away.
https://github.com/nixcloud/ip2unix/blob/v2.2.1/src/globpath.cc#L156-L170
After patpos++;
at line 169 the condition in for loop this->pattern[patpos] == '*'
tries to read this->pattern[1]
, which is invalid.
OS: openSUSE Tumbleweed
This started happening quite recently. There were no new releases of ip2unix, so something must have changed "below".
The failure looks like this:
To reiterate:
this->pattern
is astring_view
to a string "*" with length 1.patpos
== 0this->pattern[patpos]
should return char'*'
, but instead assertion fails:Assertion '__pos < this->_M_len' failed
WAT?