Summary: Fix some out-of-bounds/uninitialized issues
Project: AVR Downloader/UploaDEr
Submitted by: aklieber
Submitted on: Sun 23 Jun 2019 11:55:52 AM UTC
Priority: 5 - Normal
Assigned to: None
Discussion Lock: Any
Fix for loop missing div by sizeof first element + index var will be outside
array range if no match found.
Fix assigning PGM_DESCLEN (=80) bytes to pgm->type (32 bytes). Most likely a
mixup between type and desc fields. Comment states intention to get
description, not type.
Fix variables being uninitialized in call to avrdude_message if
Fix missing check for page_size > 0 potentially resulting in div by zero in