Parchive / par2cmdline

Official repo for par2cmdline and libpar2
http://parchive.sourceforge.net
GNU General Public License v2.0
723 stars 75 forks source link

fix: allow single char filename #149

Closed jaki closed 3 years ago

jaki commented 4 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.

Test: echo abc >/tmp/f && par2 c /tmp/f

Close: #145

r1cebank commented 3 years ago

Any update on when this will be merged?