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

Swap: Do not use bss memory in tezos swap library functions #198

Conversation

spalmer25
Copy link
Collaborator

Adding MACRO in exception.h in order to return the error instead of putting it in the global variable global

@spalmer25 spalmer25 self-assigned this Jan 18, 2024
@spalmer25 spalmer25 marked this pull request as ready for review January 18, 2024 15:11
@spalmer25 spalmer25 force-pushed the palmer@functori@do-not-use-bss-memory-in-tezos-swap-library-functions branch from a9bca26 to 5e85bde Compare January 18, 2024 15:13
app/src/handle_swap.c Outdated Show resolved Hide resolved
@@ -46,6 +46,7 @@ void
swap_handle_check_address(check_address_parameters_t *params)
{
FUNC_ENTER(("params=%p", params));
tz_exc _sw_ret_code = 0x0000;

if (params->address_to_check == NULL) {
PRINTF("[ERROR] Address to check is null\n");
Copy link
Collaborator

Choose a reason for hiding this comment

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

change error to bail so you need only one flag.

Copy link
Collaborator

@ajinkyaraj-23 ajinkyaraj-23 left a comment

Choose a reason for hiding this comment

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

Update the snapshots. Rest LGTM.

@spalmer25 spalmer25 force-pushed the palmer@functori@do-not-use-bss-memory-in-tezos-swap-library-functions branch from 7435a75 to d40434e Compare January 18, 2024 15:49
Copy link
Collaborator

@emturner emturner left a comment

Choose a reason for hiding this comment

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

lgtm

@emturner emturner merged commit 3d94f73 into main Jan 18, 2024
111 checks passed
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