Skip to content

WIP: Use dynamic memory for NBGL objects/containers#1409

Open
nroggeman-ledger wants to merge 1 commit intomasterfrom
use-dynamic-mem-for-nbgl
Open

WIP: Use dynamic memory for NBGL objects/containers#1409
nroggeman-ledger wants to merge 1 commit intomasterfrom
use-dynamic-mem-for-nbgl

Conversation

@nroggeman-ledger
Copy link
Copy Markdown
Contributor

Description

The goal of this PR is to adapt SDK to NBGL now using real dynamic allocator.

It means that:

  • a new function has been added in shared lib: nbgl_objPoolStat()
  • all shared libraries for screenshots/fuzzing have been updated

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)

Breaking changes

Because prototypes of nbgl_obj_pool functions have changed, it is incompatible with API_LEVEL_25 implem

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.12%. Comparing base (c72a00b) to head (9b2d230).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1409   +/-   ##
=======================================
  Coverage   90.12%   90.12%           
=======================================
  Files          34       34           
  Lines        3353     3353           
  Branches      435      435           
=======================================
  Hits         3022     3022           
  Misses        244      244           
  Partials       87       87           
Flag Coverage Δ
unittests 90.12% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nroggeman-ledger nroggeman-ledger force-pushed the use-dynamic-mem-for-nbgl branch 2 times, most recently from c7b7181 to 22d59b1 Compare February 4, 2026 13:55
Comment thread fuzzing/mock/custom/mocks.c Outdated
(void) exitCode;
}

mem_ctx_t mem_init(void *heap_start, size_t heap_size)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With those function, I think we cannot fuz the lib_alloc...
I would suggest to rather put them in your nbgl harness

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus utilisé, et de toute façon cette PR va finir à la poubelle

@nroggeman-ledger nroggeman-ledger force-pushed the use-dynamic-mem-for-nbgl branch from 22d59b1 to 9b2d230 Compare February 4, 2026 15:53
@nroggeman-ledger nroggeman-ledger changed the title Use dynamic memory for NBGL objects/containers WIP: Use dynamic memory for NBGL objects/containers Feb 4, 2026
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