Menu

#275 Using uninitialized memory in hunspell.cxx:452 (related to local variable shadowing in #273)

v1.0 (example)
open
nobody
None
5
2015-05-27
2015-05-27
No

Visual Studio code analysis picked this up, a plain-old C6001.

In function putdic (I feel immature while reading that in my head), because of the variable shadowing that I reported in issue #273, the outer ret might not be initialized.

C6001 Using uninitialized memory 'ret'.
435 'ret' is not initialized
437 Skip this branch, (assume '((w=strstr(word+1, "/")))==0' is false)
452 'ret' is used, but may not have been initialized

Discussion