Browse Source
Correct std::fill() calls in SPHP::flush() that used x0.end() as the end iterator when clearing x1, y0, and y1. The incorrect ranges were likely introduced by a copy/paste error and resulted in iterator pairs from different containers being used together, causing undefined behavior. Use each buffer's own end iterator when clearing its contents. Detected by cppcheck's mismatchingContainer check. Signed-off-by: Robin Getz <rgetz503@gmail.com>chirpmodem-v8.0.0
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue