patchAVR Downloader/UploaDEr - Patches: patch #9253, Fix for giving terminal_mode...


You are not allowed to post comments on this tracker with your current authentication level.

patch #9253: Fix for giving terminal_mode commands more than 20 arguments

Submitted by:  Jon Thacker <jthacker>
Submitted on:  Thu 09 Feb 2017 04:47:55 PM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Thu 09 Feb 2017 04:47:55 PM UTC, original submission:  

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

Jon Thacker <jthacker>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jthacker (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-09 jthacker Attached File- => Added 0001-Fixes-terminal-commands-with-more-than-20-arguments.patch, #39711

    Back to the top

    Powered by Savane 3.6