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

Flash porting test always failing due to array out of bounds access #44

Closed
non-det-alle opened this issue Mar 2, 2024 · 2 comments
Closed

Comments

@non-det-alle
Copy link

This line in lbm_examples/main_examples /main_porting_tests.c will always cause a SIGSEGV because the modem_context_type_t enum element CONTEXT_SECURE_ELEMENT=4 is used as index of the name_context_type array which has max index 3.

@lbm-team
Copy link
Contributor

lbm-team commented Mar 4, 2024

Hi non-det-alle,

can you try with this modification:

static const char* name_context_type[] = { "MODEM", "KEY_MODEM", "LORAWAN_STACK", "FUOTA", "SECURE_ELEMENT", "STORE_AND_FORWARD" };

@non-det-alle
Copy link
Author

Hello. Yes I know, that's what I already proposed in pull request #45 related to this issue. I'll change the names as per your suggestion.

@lbm-team lbm-team closed this as completed May 6, 2024
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

No branches or pull requests

2 participants