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

NBGL Nano: Check onActionCallback validity #825

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

abonnaudet-ledger
Copy link
Member

Description

In nbgl_step actionCallback, onActionCallback was called without being checked, leading to crash if the callback is NULL. This commit adds the relevant checks.

(cherry picked from commit 263df08)

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • Tests
  • Documentation
  • Other (for changes that might not fit in any category)

In nbgl_step actionCallback, `onActionCallback` was called without being
checked, leading to crash if the callback is NULL.
This commit adds the relevant checks.

(cherry picked from commit 263df08)
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (API_LEVEL_22@598aafa). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff               @@
##             API_LEVEL_22     #825   +/-   ##
===============================================
  Coverage                ?   35.76%           
===============================================
  Files                   ?       13           
  Lines                   ?     1591           
  Branches                ?        0           
===============================================
  Hits                    ?      569           
  Misses                  ?     1022           
  Partials                ?        0           
Flag Coverage Δ
unittests 35.76% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abonnaudet-ledger abonnaudet-ledger merged commit 49a5886 into API_LEVEL_22 Nov 15, 2024
187 checks passed
@abonnaudet-ledger abonnaudet-ledger deleted the abo_update_api_22_check_null_ptr branch November 15, 2024 14:30
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.

3 participants