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

Investigate adding heap canaries #150

Open
AntonioND opened this issue May 15, 2024 · 2 comments
Open

Investigate adding heap canaries #150

AntonioND opened this issue May 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@AntonioND
Copy link
Member

AntonioND commented May 15, 2024

Stack overflows in particular are very hard to detect and very dangerous, it would be very nice to have a system to create debug builds of a program that can detect this kind of issues.

The following can be used as inspiration: https://github.com/profi200/libn3ds/blob/3bd21685705cbcc4ada9aab2c0f43faeeb304151/source/arm11/debug.c#L309-L386

EDIT: We already have stack canaries thanks to @asiekierka, only heap canaries are left.

@AntonioND AntonioND added the enhancement New feature or request label May 15, 2024
@AntonioND AntonioND changed the title Investigate if it's possible to ad heap/stack canaries Investigate if it's possible to add heap/stack canaries May 31, 2024
@AntonioND
Copy link
Member Author

AntonioND commented Jun 4, 2024

As I've said in blocksds/libnds#98, now that we have stack protector support in libnds, we need a test for the stack protector (in examples/debug).

We should also add this to the documentation, eventually, as well as the default exception handler.

@asiekierka
Copy link
Contributor

There's a test in BlocksDS now, and a separate documentation issue is open: #154

This leaves heap canaries.

@AntonioND AntonioND changed the title Investigate if it's possible to add heap/stack canaries Investigate adding add heap canaries Jun 9, 2024
@AntonioND AntonioND changed the title Investigate adding add heap canaries Investigate adding heap canaries Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants