Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#6095 closed defect (fixed)

Double free in gdalbuildvrt with -b may result in a crash

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.11.3
Component: Utilities Version:
Severity: normal Keywords:
Cc:

Description (last modified by Even Rouault)

When using gdalbuildvrt -b, the panBandList allocated in the main() is free'd by the main() and by the destructor of VRTBuilder class. Strangely this rarely crashed in 2.0 but is much more reproducible in trunk although the code has barely changed.

Change History (2)

comment:1 Changed 21 months ago by Even Rouault

Description: modified (diff)
Milestone: 2.0.1
Resolution: fixed
Status: newclosed
Version: unspecified2.0.0

trunk r30125, branches/2.0 r30126 "gdalbuildvrt: fix potential crash when using -b switch (#6095)"

comment:2 Changed 21 months ago by Even Rouault

Milestone: 2.0.11.11.3
Version: 2.0.0

trunk r30127, branches/2.0 r30128 "test_gdalbuildvrt.py: Delete temp file (#6095)"

1.11 was also affected branches/1.11 r30129 "gdalbuildvrt: fix potential crash when using -b switch (#6095)"

Note: See TracTickets for help on using tickets.