DjangoPeng / DjangoPeng/word2vec
expTable array initialization
Open
auto-migrated
Priority-Medium
Type-Defect
- Dominant language
- C
- Stars
- 3
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
```
In the end of word2vec.c there's "malloc" of size EXP_TABLE_SIZE + 1
But the next "for" loop is for(i=0; i < EXP_TABLE_SIZE; ++i)
That means, expTable[EXP_TABLE_SIZE] is uninitialized.
As the result - we can see different program output on the same input data.
```
Original issue reported on code.google.com by `alex.y.t...@gmail.com` on 1 Dec 2014 at 7:11
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.