[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #42056] Current SVN version: double free or corruptio
From: |
anonymous |
Subject: |
[avrdude-dev] [bug #42056] Current SVN version: double free or corruption triggered at exit |
Date: |
Sat, 05 Apr 2014 17:17:31 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
URL:
<http://savannah.nongnu.org/bugs/?42056>
Summary: Current SVN version: double free or corruption
triggered at exit
Project: AVR Downloader/UploaDEr
Submitted by: None
Submitted on: Sat 05 Apr 2014 05:17:30 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Rok Mandeljc
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The current SVN version (r1295) of avrdude causes a double free or corruption
at exit.
The problem seems to be introduced by the following commit: r1290: "pgm.c
(pgm_free): Cleanup police: destroy the p->usbpid list when freeing the
programmer struct." Reverting it fixes the issue.
However, the actual culprit is the code for duplication of programmer
definitions, pgm_dup(). In line 165, information from source structure is
copied to the new structure using memcpy(). pgm->id is then reinitialized, but
pgm->usbpid is not, and remains a shallow copy. Therefore, when programmers
are destroyed at exit, the usbpid entries in those duplicated programmer
definitions end up being freed multiple times...
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?42056>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avrdude-dev] [bug #42056] Current SVN version: double free or corruption triggered at exit,
anonymous <=