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

Disable all penumbre api for nanos #2

Merged
merged 5 commits into from
Nov 22, 2024
Merged

Conversation

neithanmo
Copy link
Collaborator

  • fix nanos compilation issue by removing all penumbra functionality which causes large binary sizes not compatible for that target

Comment on lines 309 to 313
switch (G_io_apdu_buffer[OFFSET_INS]) {
case INS_GET_VERSION: {
handle_getversion(flags, tx);
break;
}
#if defined(APP_TESTING)
case INS_TEST: {
handleTest(flags, tx, rx);
THROW(APDU_CODE_OK);
break;
}
#endif
default:
zemu_log("ins_not_supported**\n");
THROW(APDU_CODE_INS_NOT_SUPPORTED);
}

Check notice

Code scanning / CodeQL

No trivial switch statements

This switch statement should either handle more cases, or be rewritten as an if statement.
@neithanmo neithanmo force-pushed the fix/nanos_compilation branch from 35c9f8e to c33b9e2 Compare November 22, 2024 19:15
@neithanmo neithanmo changed the base branch from dev to feat/m1_fixes November 22, 2024 19:24
@neithanmo neithanmo merged commit 8416209 into feat/m1_fixes Nov 22, 2024
29 checks passed
@neithanmo neithanmo deleted the fix/nanos_compilation branch November 25, 2024 16:47
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.

2 participants