-
Notifications
You must be signed in to change notification settings - Fork 156
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
read/archive: locate members by table in AIX archive #467
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also run cargo fmt
so that CI passes.
6a22218
to
c58b6aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the cargo fmt
in src/archive.rs
as well please? I think it's from the previous PR (#462).
let table_size = parse_u64_digits(&header.size, 10) | ||
.read_error("Invalid AIX big archive member size")?; | ||
let members_count = data | ||
.read_bytes_at(member_table_offset, 30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have been a length of 20?
I'll do a followup PR for some other things, so I'll change this if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it should be 20, Thanks!
This is from review of #462. Iterating over members by member table can avoid potential infinite loop if the file is malformed. Also, this change sets
names
for a parsed file.