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

Fix heap corruption #25

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

krish2718
Copy link
Collaborator

No description provided.

krish2718 added 2 commits May 28, 2024 23:34
Check for allocation failure and log an error. The error aren't
propagated as it needs more changes, but at least we can identify that
allocation has failed.

Signed-off-by: Chaitanya Tata <[email protected]>
While parsing the packet all TLV's are NULl terminated explicitly, so,
take in to account the NULL terminating byte while memory allocation.

Else, this overrides other memory causing hard to debug heap
corruptions.

Fixes SHEL-2754.

Signed-off-by: Chaitanya Tata <[email protected]>
When using POSIX_API we need to define dummy prototype for compilation
to succeed.

Signed-off-by: Chaitanya Tata <[email protected]>
indigo_api.c Show resolved Hide resolved
@krish2718 krish2718 changed the base branch from main to qt_v2.5.1 May 30, 2024 11:48
@krish2718 krish2718 changed the base branch from qt_v2.5.1 to main May 30, 2024 11:48
@krish2718 krish2718 merged commit 9f91589 into nrfconnect:main May 30, 2024
2 checks passed
@krish2718 krish2718 deleted the fix_heap_corruption branch May 30, 2024 11:49
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