Menu

garbage returned by ps_get_hyp

Help
2010-04-09
2012-09-22
  • Fabrizio Morbini

    Hi, the function ps_get_hyp seems to return a pointer to uninitialized memory
    in windows (VS9).
    This happens in the function ngram_search_bp_hyp when len is 0.

    in the line
    base->hyp_str = ckd_calloc(1, len);
    ckd_calloc returns a non NULL pointer but nothing is written (not even the
    '\0' given that len=0).

    thanks,
    fabrizio.

     
  • Nickolay V. Shmyrev

    Fixed in trunk and in stable branch, thanks a lot!

     

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.