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

Add better return value/error status checks #2062

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Jun 26, 2020

  • adds TIFF decoder creation status
  • adds a couple of NVJPEG_CALL to ImageDecoder where nvJPEG library calls return values were not checked
  • adds rapidjson parsing status check
  • adds missing FFmpeg function return value checks

Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com

Why we need this PR?

Pick one, remove the rest

  • It adds better return value/error status checks

What happened in this PR?

Fill relevant points, put NA otherwise. Replace anything inside []

  • What solution was applied:
    added missing return value/error status checks when calling an external library
  • Affected modules and functionalities:
    COCOreader
    ImageDecoder GPU
    VideoDecoder
    TIFF decoder
  • Key points relevant for the review:
    If any unchecked value didn't slip out
  • Validation and testing:
    CI
  • Documentation (including examples):
    NA

JIRA TASK: [DALI-1180]

@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 26, 2020

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1426232]: BUILD STARTED

- adds TIFF decoder creation status
- adds a couple of NVJPEG_CALL to ImageDecoder where nvJPEG library
  calls return values were not checked
- adds rapidjson parsing status check
- adds missing FFmpeg function return value checks
- adds missing npp function return value checks

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL
Copy link
Contributor Author

JanuszL commented Jun 26, 2020

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1426232]: BUILD PASSED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1426399]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [1426399]: BUILD PASSED

@JanuszL JanuszL merged commit 4beb2ee into NVIDIA:master Jun 29, 2020
@JanuszL JanuszL deleted the more_sec_checks branch June 29, 2020 11:13
JanuszL added a commit to JanuszL/DALI that referenced this pull request Jun 29, 2020
- adds TIFF decoder creation status
- adds a couple of NVJPEG_CALL to ImageDecoder where nvJPEG library calls return values were not checked
- adds rapidjson parsing status check
- adds missing FFmpeg function return value checks
- adds missing npp function return value checks

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
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