-
Notifications
You must be signed in to change notification settings - Fork 2
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
Swap: Do not use bss memory in tezos swap library functions #198
Conversation
a9bca26
to
5e85bde
Compare
@@ -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"); |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
7435a75
to
d40434e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Adding MACRO in
exception.h
in order to return the error instead of putting it in the global variableglobal