Menu

#71 fix: ocaml.c was reading from freed memory

open
nobody
None
5
2010-11-24
2010-11-24
No

To reproduce, run with valgrind on pretty much any pair of OCaml sources. Note that the bug almost never caused an actual crash, but I got lucky. :P

The function findOcamlTags() called computeModuleName() before initializing the stack, which is used by computeModuleName(). Also, initStack() did not reset stackIndex.

Discussion

  • Radu GRIGORE

    Radu GRIGORE - 2010-11-24
     
  • Vincent Berthoux

    Modification pushed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.