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

Fbe/parameters in stack #245

Open
wants to merge 3 commits into
base: fbe/swap_spl_token
Choose a base branch
from

Conversation

fbeutin-ledger
Copy link
Contributor

No description provided.

// ensure exception will work as planned
os_boot();

// Global like variable, placed in stack to avoid BSS corruption by the library application
swap_app_context_t swap_ctx;
G_swap_ctx = &swap_ctx;

Check warning

Code scanning / CodeQL

Local variable address stored in non-local memory Warning

A stack address (
source
) may be assigned to a non-local variable.
#ifdef HAVE_NBGL
memcpy(&G_previous_cycle_data, &tmp_previous_cycle_data, sizeof(G_previous_cycle_data));
#endif
G_swap_ctx = &swap_ctx;

Check warning

Code scanning / CodeQL

Local variable address stored in non-local memory Warning

A stack address (
source
) may be assigned to a non-local variable.
@fbeutin-ledger fbeutin-ledger force-pushed the fbe/swap_spl_token branch 2 times, most recently from bafbd0f to 291dba8 Compare January 10, 2025 14:22
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.

1 participant