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

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

Fri 12 Nov 2021 10:12:04 PM UTC, comment #1: 

Applied in r1471, thanks.

Joerg Wunsch <joerg_wunsch>
Group administrator
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
reallocation.

Jon Thacker <jthacker>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 joerg_wunsch (Posted a comment)
  • -email is unavailable- added by jthacker (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-12 joerg_wunsch StatusNone Done
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    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.13-f8d8.
    Corresponding source code