Open GoogleCodeExporter opened 9 years ago
Btw,I debugged the block in vertex-buffer. c (lines 78- 90) and found that the
free(desc) crashes only on the last attribute "color:4f" which in turn the only
one which sets desc with strup(start),the previous two set desc with
strnup.Maybe usage of strup somehow causes location being freed by free() to
get invalid?
Original comment by michael....@idomoo.com
on 12 Nov 2013 at 4:00
Ok,I fixed it.it becomes obvious if setting the lib to compile to C++ and not
to C.In such a case the compiler throws error:
" The POSIX name for this item is deprecated. Instead, use the ISO C++
conformant name: _strdup
"
So I replaced all strdup with _strdup and free() doesn't throw errors
anymore.Do you want to make this fix in the repo?
Original comment by michael....@idomoo.com
on 12 Nov 2013 at 4:12
This occurs also in VC2013, and _strdup fixes.
Original comment by kengo.na...@gmail.com
on 22 Jan 2015 at 8:33
Original issue reported on code.google.com by
michael....@idomoo.com
on 12 Nov 2013 at 2:34