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

fix(unixfs): check for errors before dereferencing the link #8508

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

Stebalien
Copy link
Member

If there's an error, the link will be nil, and this will panic.

If there's an error, the link will be nil, and this will panic.
@aschmahmann
Copy link
Contributor

LGTM. Will add a test.


test_expect_success "can list part of the directory" '
ipfs ls "$largeSHA3dir" 2> ls_err_out
echo "Error: merkledag: not found" > exp_err_out &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there's a less fragile way to detect this error at the moment

@aschmahmann aschmahmann merged commit 3e43745 into master Oct 26, 2021
@aschmahmann aschmahmann deleted the fix/link-res-check branch October 26, 2021 20:03
@guseggert guseggert mentioned this pull request Nov 23, 2021
80 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants