Skip to content

Conversation

@dignifiedquire
Copy link
Contributor

This avoids a panic when calling decode_mut with an invalid input length.

Closes #3153

This avoids a panic when calling `decode_mut` with an invalid input length.

Closes #3153
@dignifiedquire dignifiedquire requested a review from a team January 28, 2025 10:47
@dignifiedquire dignifiedquire added this to the v0.32.0 milestone Jan 28, 2025
@dignifiedquire dignifiedquire self-assigned this Jan 28, 2025
@github-actions
Copy link

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/3155/docs/iroh/

Last updated: 2025-01-28T10:50:06Z

@github-actions
Copy link

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 2641915

Copy link
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

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

Very annoying that decode_mut panics... seems like a footgun.

@dignifiedquire dignifiedquire added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit a8d058f Jan 28, 2025
26 checks passed
@andrewdavidmackenzie
Copy link

Thanks!

@dignifiedquire dignifiedquire deleted the fix-node-id-panic branch January 28, 2025 12:17
rklaehn added a commit to n0-computer/iroh-blobs that referenced this pull request Mar 11, 2025
## Description

Same issue as n0-computer/iroh#3155

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.

---------

Co-authored-by: Ruediger Klaehn <rklaehn@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Node::from_str() can panic

4 participants