Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DoubleReal masse_[255]; ///< mass table
- EdwardsLippertIterator::EdwardsLippertIterator(
- const EdwardsLippertIterator & source) :
- PepIterator(source),
- f_file_(source.f_file_),
- actual_pep_(source.actual_pep_),
- spec_(source.spec_),
- tol_(source.tol_),
- is_at_end_(source.is_at_end_),
- f_iterator_(source.f_iterator_),
- f_entry_(source.f_entry_),
- b_(source.b_),
- e_(source.e_),
- m_(source.m_),
- massMax_(source.massMax_)
- {
- for (Size i = 0; i < 256; i++)
- {
- masse_[i] = source.masse_[i];
- }
- }
- This suspicious code was found in OpenMS project by PVS-Studio static code analyzer.
- Warning message is:
- V557 Array overrun is possible. The value of 'i' index could reach 255. edwardslippertiterator.c 134
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment