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

glutCreateMenu can be created with a NULL callback #43

Open
rcmaniac25 opened this issue Jan 17, 2016 · 3 comments
Open

glutCreateMenu can be created with a NULL callback #43

rcmaniac25 opened this issue Jan 17, 2016 · 3 comments

Comments

@rcmaniac25
Copy link
Contributor

As discussed in email thread from 11/18/2015, subject "Possible Bugs"

"glutCreateMenu could have a NULL callback passed into it. This won't cause any issues until the menu is invoked, in which case it will segfault. Should there be a check when the menu is created, or should the callback be ignored"

@dcnieho
Copy link
Collaborator

dcnieho commented Jan 17, 2016

For this and #44: without looking at the code, having a menu or a timer without a working callback appears useless. We probably shouldn't allow it. Or can anybody see any for of a usage case for this? I will have to look at what GLUT would do in these cases.

@rcmaniac25
Copy link
Contributor Author

@dcnieho I was thinking of fixing these couple small issues. Do you know what GLUT does?

@dcnieho
Copy link
Collaborator

dcnieho commented Jun 18, 2019

No I don't, could you have a look? Thanks for keeping going! As is probably clear, I do not have time anymore (but will try to keep this fork up to date)

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