#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 , 13 years ago
Keywords: | JP2KAK added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 13 years ago
Milestone: | → 1.7.4 |
---|
Note:
See TracTickets
for help on using tickets.
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.