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 MultiArch Debug impl panic #251

Merged
merged 1 commit into from Jan 31, 2021
Merged

Fix MultiArch Debug impl panic #251

merged 1 commit into from Jan 31, 2021

Conversation

messense
Copy link
Contributor

Fixes #250

@@ -410,7 +410,7 @@ impl<'a> MultiArch<'a> {
impl<'a> fmt::Debug for MultiArch<'a> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_struct("MultiArch")
.field("arches", &self.arches().unwrap())
.field("arches", &self.arches().unwrap_or_default())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It requires a Vec<FatArch>, can't write it to output NO_ARCHES

@m4b
Copy link
Owner

m4b commented Jan 31, 2021

argh not sure why i didn't see this, sorry for the delay and thanks for the fix!

@m4b m4b merged commit c0a421f into m4b:master Jan 31, 2021
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

Successfully merging this pull request may close these issues.

MultiArch parsing non fat binary panicked with Scroll(BadOffset())
2 participants