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 #824

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

abonnaudet-ledger
Copy link
Member

Description

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

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.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.49%. Comparing base (fe9d203) to head (263df08).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #824   +/-   ##
=======================================
  Coverage   35.49%   35.49%           
=======================================
  Files          13       13           
  Lines        1606     1606           
=======================================
  Hits          570      570           
  Misses       1036     1036           
Flag Coverage Δ
unittests 35.49% <ø> (ø)

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 c56add3 into master Nov 15, 2024
189 checks passed
@abonnaudet-ledger abonnaudet-ledger deleted the abo_check_null_pointer branch November 15, 2024 10:53
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