ray
ray copied to clipboard
Read.cpp:48: possible array index out of range
[code/SequencesLoader/Read.cpp:48]: (style) Array index 'first' is used before limits check.
Source code is
while(buffer[first]!=SYMBOL_A && buffer[first]!=SYMBOL_T &&buffer[first]!=SYMBOL_C &&buffer[first]!=SYMBOL_G &&first<theLen){
Also
[code/SequencesLoader/BzReader.cpp:80]: (style) Array index 'm_bufferPosition' is used before limits check. [code/SequencesLoader/BzReader.cpp:161]: (style) Array index 'm_bufferPosition' is used before limits check.
Is this from a Coverity report ?
No, from cppcheck, a static analyser, similar to Coverity.
Cppcheck is available from sourceforge.