Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Letter path crashes par2 #165

Open
lkydev opened this issue Nov 2, 2021 · 1 comment
Open

Single Letter path crashes par2 #165

lkydev opened this issue Nov 2, 2021 · 1 comment

Comments

@lkydev
Copy link

lkydev commented Nov 2, 2021

I stumbled across the following bug while creating a parity set.

Par2cmdline 0.8.1
FreeBSD 13.0 (x86)
Debian 11.0 (x86)
Debian 11.0 (x64) on WSL1 and WSL2.

# create a file named 'a' (a single letter)
$ dd if=/dev/urandom of=a bs=10000 count=100

# create a parity set
$ par2 c -s10000 -c100 test.par2 a

Block size: 10000
Source file count: 1
Source block count: 1000
Recovery block count: 100
Recovery file count: 7

Opening: a
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::at: __n (which is 1) >= this->size() (which is 1)
Aborted (core dumped)
@animetosho
Copy link
Contributor

See #149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants