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 VideoReader error checking when opening files #2223

Merged
merged 1 commit into from
Aug 20, 2020

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Aug 19, 2020

Error checking comparison was reversed on opening
video files resulting in not reporting an error
and further processing of corrupted file that
ended in segfault.

Now the error is caught and properly reported.
Test was added.

Signed-off-by: Krzysztof Lecki klecki@nvidia.com

Why we need this PR?

It fixes a bug reported in #2221.

What happened in this PR?

  • What solution was applied:
    Enforce check was reversed (errors have negative values).
  • Affected modules and functionalities:
    VideoReader
  • Key points relevant for the review:
    Check if there are no more such mistakes. I went through the .cc file and it looks ok.
  • Validation and testing:
    A corrupted file was added to DALI_extra. Test with that file was added.
  • Documentation (including examples):
    N/A

JIRA TASK: [NA]

Error checking comparison was reversed on opening
video files resulting in not reporting an error
and further processing of corrupted file that
ended in segfault.

Now the error is caught and properly reported.
Test was added.

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Aug 19, 2020

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1556117]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1556117]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1556117]: BUILD PASSED

@klecki klecki merged commit 9b6f579 into NVIDIA:master Aug 20, 2020
@klecki klecki deleted the videoreader-fix branch August 20, 2020 10:04
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.

4 participants