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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Fixed in trunk and in stable branch, thanks a lot!