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: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/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
reallocation.

Jon Thacker <jthacker>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Feb 2017 04:47:55 PM UTCjthackerAttached File-=>Added 0001-Fixes-terminal-commands-with-more-than-20-arguments.patch, #39711

    Back to the top


    Powered by Savane 3.1-cleanup1