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

coredump: Cancel stack buffer alignment #11919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

0528Mike
Copy link

Access out of bounds caused by alignment.The coredump function is not affected and has been verified

Summary

Impact

Testing

Access out of bounds caused by alignment.The coredump function is not affected and has been verified

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
@@ -370,10 +370,6 @@ static void elf_emit_tcb_stack(FAR struct elf_dumpinfo_s *cinfo,
(tcb->stack_base_ptr - tcb->stack_alloc_ptr);
}

sp = ROUNDDOWN(buf, PROGRAM_ALIGNMENT);
Copy link
Contributor

Choose a reason for hiding this comment

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

keep the alignment and trim the alignment size align with arch requirement

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.

None yet

2 participants