[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#687564: RFS: irstlm/5.80.01-1 -- [ITP] IRST Language Modeling Toolkit



cppcheck reports:

[src/cmd.c:91]: (error) syntax error
[src/mfstream.h:224]: (error) Memory leak: a
[src/compile-lm.cpp:235]: (error) Possible null pointer dereference: lmt
[src/dictionary.cpp:195]: (error) Memory leak: curve
[src/dictionary.cpp:257]: (error) Memory leak: OOVchart
[src/interpolate-lm.cpp:602]: (error) Possible null pointer dereference: lmt
[src/lmInterpolation.cpp:95]: (error) Array 'words[2]' accessed at index 2, which is out of bounds.
[src/lmInterpolation.cpp:168]: (error) Memory leak: _extendible
[src/lmInterpolation.cpp:139]: (error) Possible null pointer dereference: lmt
[src/lmInterpolation.cpp:168]: (error) Boolean value assigned to pointer.
[src/lmclass.cpp:190]: (error) Common realloc mistake: 'MapScore' nulled but not freed upon failure
[src/lmmacro.cpp:225]: (error) Common realloc mistake: 'microMacroMap' nulled but not freed upon failure
[src/lmmacro.cpp:229]: (error) Common realloc mistake: 'collapsableMap' nulled but not freed upon failure
[src/lmmacro.cpp:230]: (error) Common realloc mistake: 'collapsatorMap' nulled but not freed upon failure
[src/lmmacro.cpp:273]: (error) Common realloc mistake: 'microMacroMap' nulled but not freed upon failure
[src/lmmacro.cpp:281]: (error) Common realloc mistake: 'microMacroMap' nulled but not freed upon failure
[src/lmmacro.cpp:92]: (error) Array 'words[4]' accessed at index 4, which is out of bounds.
[src/lmmacro.cpp:859]: (error) Common realloc mistake: 'lexicaltoken2classMap' nulled but not freed upon failure
[src/mdiadapt.cpp:1351]: (error) Uninitialized variable: tout
[src/mdiadapt.cpp:1352]: (error) Uninitialized variable: tout
[src/ngramtable.cpp:56]: (error) Undefined behavior: Variable 'info' is used as parameter and destination in s[n]printf().
[src/ngramtable.cpp:531]: (error) Uninitialized variable: selmask
[src/ngt.cpp:306]: (error) Uninitialized variable: selmask
[src/plsa.cpp:253]: (error) Mismatching allocation and deallocation: hfile
[src/prune-lm.cpp:116]: (error) Memory leak: s
[src/util.cpp:177]: (error) Uninitialized variable: p


(I haven't looked into details; some of these might be false positives.)

--
Jakub Wilk


Reply to: