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 clippy & enhance CI/CD #78

Merged
merged 4 commits into from
Jul 8, 2022
Merged

fix clippy & enhance CI/CD #78

merged 4 commits into from
Jul 8, 2022

Conversation

ririsoft
Copy link
Contributor

This PR fixes clippy errors and enhance the CI/CD with clippy checks and running latest rust version.

I would recommend to have a deep look at commit fix clippy::unused_io_amount : it allowed to fix a bug in mp4a parsing, where BoxHeader::read errors were silently ignored and could lead to "overflow read". But now the change could make mp4 returns an error in some cases where it did not and could break existing code based on this bad behavior.

Up to you to release it as a breaking change release or not.

Last I would recommend to check whether my fix for fix clippy error with always 0 value is correct. There was truly a bug, but I am not completely sure my fix is the one expected.

Cheers.

See related clippy documentation,
but in short some partial reads can occur
in particular with io on the networl.
read_exact/write_all transparently handle such errors.

The fix actually revealed a bug
in 'mp4a' atom parsing, but this is a dangerous change:
Parsing bugs that were transparently ignored
are now failing with error (unattended io eof).
@alfg alfg merged commit 5d648f1 into alfg:master Jul 8, 2022
@alfg
Copy link
Owner

alfg commented Jul 8, 2022

Hey, sorry for the late response, but thank you for the PR!

@ririsoft ririsoft deleted the clippy branch July 10, 2022 09:26
jprochazk pushed a commit to jprochazk/mp4 that referenced this pull request Sep 18, 2024
* fix clippy::unused_io_amount

See related clippy documentation,
but in short some partial reads can occur
in particular with io on the networl.
read_exact/write_all transparently handle such errors.

The fix actually revealed a bug
in 'mp4a' atom parsing, but this is a dangerous change:
Parsing bugs that were transparently ignored
are now failing with error (unattended io eof).

* fix trivial clippy errors

* fix clippy error with always 0 value

* run ci/cd with clippy and latest rust version
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.

2 participants