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: use slice::from_raw_parts only if size > 0 #126

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

mbehr1
Copy link
Contributor

@mbehr1 mbehr1 commented Jun 22, 2024

libarchive seems to pass a nullptr with size 0 to the archive_read_data_block callback. This leads to a precondition violated assert in debug builds.

@mbehr1 mbehr1 force-pushed the fix/unsafe_precond_warning branch from fe31d24 to 462203c Compare June 22, 2024 13:56
libarchive seems to pass a nullptr with size 0 to the archive_read_data_block callback.
This leads to a precondition violated assert in debug builds.
@otavio otavio force-pushed the fix/unsafe_precond_warning branch from 462203c to 3f268b6 Compare June 24, 2024 13:51
@otavio otavio merged commit e2fc318 into OSSystems:master Jun 24, 2024
9 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants