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

RBT segfaults #5

Open
professorcode1 opened this issue Feb 26, 2023 · 1 comment
Open

RBT segfaults #5

professorcode1 opened this issue Feb 26, 2023 · 1 comment

Comments

@professorcode1
Copy link

Make an RBT Tree with elements from 1 to 21, including both. Now try to delete 12 the program will segfault for trying to illegally write to memory via the line

            x->parent = y;

from the main else block in RB_delete

@professorcode1
Copy link
Author

Its a simple fix. Would you like me to open a PR?

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

1 participant