Opened 11 years ago

Closed 11 years ago

#5065 closed defect (duplicate)

Stack overflow in error report code

Reported by: dzid Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.9.2
Severity: normal Keywords:
Cc:

Description

Running on a Win32 platform. If call to Win32 TlsAlloc() function made from CPLGetTLSList() fails, there is infinite recursion as CPLError() eventually enters the same code again and again until stack overflows.

Another part of the problem is that even if CPLError() worked, the returned (invalid) index is then used in TlsGetValue() function that may either crash or return 0, making CPLGetTLS() to crash.

I understand that it is very unlikely for TlsAlloc() to fail, however I discovered this scenario from a real client's crash dump so that's definitely possible.

Change History (1)

comment:1 by Even Rouault, 11 years ago

Resolution: duplicate
Status: newclosed

I believe this is a duplicate of #4175 fixed in GDAL 1.10.0

Note: See TracTickets for help on using tickets.