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

ipld/unixfs/hamt: catch panic in walkChildren #393

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

Jorropo
Copy link
Contributor

@Jorropo Jorropo commented Jun 26, 2023

@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.20%. Comparing base (171b0b7) to head (b4cd10f).
Report is 1 commits behind head on main.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #393      +/-   ##
==========================================
+ Coverage   60.18%   60.20%   +0.01%     
==========================================
  Files         241      241              
  Lines       30707    30712       +5     
==========================================
+ Hits        18482    18490       +8     
+ Misses      10574    10569       -5     
- Partials     1651     1653       +2     
Files with missing lines Coverage Δ
ipld/unixfs/hamt/hamt.go 76.66% <100.00%> (+0.19%) ⬆️

... and 13 files with indirect coverage changes

@Jorropo
Copy link
Contributor Author

Jorropo commented Jun 26, 2023

NVM this does not fix any issues, it prints debug info when that happen, I don't see why printf debugs should be commited ?

@gammazero
Copy link
Contributor

@lidel Even though the problem should not happen, do we still want this change in case there are any existing HAMTs that would cause the panic? If not, then please close this PR.

@gammazero gammazero added the need/maintainers-input Needs input from the current maintainer(s) label Sep 19, 2024
@gammazero gammazero merged commit 628b0f6 into main Sep 24, 2024
16 checks passed
@gammazero gammazero deleted the fix/hamt-panic-in-unixfs branch September 24, 2024 17:15
wenyue pushed a commit to wenyue/boxo that referenced this pull request Oct 17, 2024
* ipld/unixfs/hamt: catch panic in walkChildren

* Add test for nil link and shard

* rename test

* Update CHANGELOG.md

---------

Co-authored-by: Lucas Molas <[email protected]>
Co-authored-by: Andrew Gillis <[email protected]>
@gammazero gammazero mentioned this pull request Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/maintainers-input Needs input from the current maintainer(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants