Closed jaki closed 3 years ago
A string::at call on pos 1 could be called on a string that is one character long, so it throws an out_of_range and core dumps. Avoid this by checking the string size beforehand.
string::at
pos
1
out_of_range
Test: echo abc >/tmp/f && par2 c /tmp/f
echo abc >/tmp/f && par2 c /tmp/f
Close: #145
Any update on when this will be merged?
A
string::at
call onpos
1
could be called on a string that is one character long, so it throws anout_of_range
and core dumps. Avoid this by checking the string size beforehand.Test:
echo abc >/tmp/f && par2 c /tmp/f
Close: #145