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

Interpreter Sniffing: is_detectCocoaGlk crashes WinGit #6

Closed
curiousdannii opened this issue Feb 7, 2014 · 6 comments
Closed

Interpreter Sniffing: is_detectCocoaGlk crashes WinGit #6

curiousdannii opened this issue Feb 7, 2014 · 6 comments
Assignees
Labels

Comments

@curiousdannii
Copy link
Member

When used with Kerkerkruip is_detectCocoaGlk crashes WinGit.

@EmacsUser
Copy link
Member

Huh. I'll look into it.

@EmacsUser
Copy link
Member

Okay, I got my hands on a Windows box and confirmed the bug. Now I just have to remember how to debug things in Windows...

@EmacsUser
Copy link
Member

After making the mistake of shutting down the computer, at which point it decided to install 79 updates, I finally got impatient and found the bug by code inspection instead.

Per Section 1.9 of the Glk Spec:

Some functions have pointer arguments, acting as "variable" or "reference" arguments; the function’s intent is to return some value in the space pointed to by the argument. Unless the function says otherwise, it is legal to pass NULL to indicate that you do not care about that value.

However, https://github.com/DavidKinder/Windows-Glk/blob/master/GlkDll/GlkWindow.cpp#L1122 has no nonnullness checks.

I have to travel for a bit, but I'll get throw-away arrays in as a workaround and send David a bug report once I arrive.

@EmacsUser
Copy link
Member

Okay, DavidKinder/Windows-Glk#1 is in; workaround shortly.

@EmacsUser
Copy link
Member

Okay, now I have the unfortunate problem of not being able to get to a Windows machine again until Monday. Would somebody be willing to verify this fix?

@curiousdannii
Copy link
Member Author

Yep it works! Thanks for figuring this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants