Bug#727175: libsoil crashes when calling most functions
Brandon
brandonbarnes at fastmail.fm
Wed Oct 23 02:25:44 UTC 2013
Package: libsoil1
Version: 1.07~20080707.dfsg-2
Severity: important
Tags: patch
libsoil crashes when executing most functions. The problem is that some
internal functions use glGetString improperly, glGetString then returns
a null pointer, and then those functions send that null pointer to
strstr, which causes a crash.
I have attached a patch which replaces glGetString with glGetIntegerv
and glGetStringi, which appears to be what was intended.
I also defined GL_GLEXT_PROTOTYPES before the call to include GL.h. It
alleviates many warnings, but I'm not sure if it affects the output or
if you'd rather do it a different way.
-Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_glGetString_crash.patch
Type: text/x-patch
Size: 3202 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20131022/b2453dfb/attachment.bin>
More information about the Pkg-games-devel
mailing list