[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [patch #9253] Fix for giving terminal_mode commands more t
From: |
Jon Thacker |
Subject: |
[avrdude-dev] [patch #9253] Fix for giving terminal_mode commands more than 20 arguments |
Date: |
Thu, 9 Feb 2017 11:47:56 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avrdude-dev] [patch #9253] Fix for giving terminal_mode commands more than 20 arguments,
Jon Thacker <=