#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

  • Vincent Berthoux

    Modification pushed

     

Log in to post a comment.