URL: <http://savannah.nongnu.org/patch/?9253>
Summary: Fix for giving terminal_mode commands more than 20 arguments Project: AVR Downloader/UploaDEr Submitted by: jthacker Submitted on: Thu 09 Feb 2017 04:47:55 PM UTC Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: When more than 20 arguments are parsed from the input, memory is reallocated by 20 arguments. `bufv` contains pointers into `buf`, both of which run through realloc. Realloc does not guarantee that the new memory will be at the same location, which can lead to stale pointers in `bufv` following the realloc of `buf`. This commit adjusts the pointers in `bufv` to point to the potentially new locations of `buf` after the reallocation. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Thu 09 Feb 2017 04:47:55 PM UTC Name: 0001-Fixes-terminal-commands-with-more-than-20-arguments.patch Size: 2kB By: jthacker <http://savannah.nongnu.org/patch/download.php?file_id=39711> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9253> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev