Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
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 [email protected] on 12 Nov 2013 at 4:00

from freetype-gl.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
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 [email protected] on 12 Nov 2013 at 4:12

from freetype-gl.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
This occurs also in VC2013, and _strdup fixes.

Original comment by [email protected] on 22 Jan 2015 at 8:33

from freetype-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.