Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#3852 closed defect (fixed)

Uninitialized variables in JP2KAKDataset class

Reported by: rprinceley Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: JP2KAK
Cc:

Description

Some class members are not initialized to 0 / NULL:

    poInput
    poRawInput
    family
    jpip_client
    poThreadEnv

Under certain circumstances this leads to crash in the destructor when deleting poThreadEnv (in singlethreaded mode, which usually is the default in virtual machines, etc.).

Change History (3)

comment:1 by warmerdam, 13 years ago

Keywords: JP2KAK added
Resolution: fixed
Status: newclosed

I have reviewed the JP2KAKDataset constructor in trunk and poInput, poRawInput, and family were all already initialized to NULL. Perhaps you were looking at an older branch?

I have added initialization of jpip_client and poThreadEnv in trunk (r21163) and 1.7 (r21164).

Let me know if the patch should be applied in any older branches.

comment:2 by warmerdam, 13 years ago

Milestone: 1.7.4

comment:3 by Even Rouault, 11 years ago

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.