Opened 12 years ago

Last modified 12 years ago

#4836 closed defect

OCTTransform and OCTTransformEx do not check for NULL pointer — at Initial Version

Reported by: Leith Bade Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: OGR_SRS Version: svn-trunk
Severity: normal Keywords: OCTTransform OCTTransformEx
Cc:

Description

I discovered a bug in OCTTransform and OCTTransformEx.

The functions do not check if hTransform is NULL before they call hTransform->Transform() .

As such if the caller passes in NULL (say because creating the coordinate transformation failed on some previous step) the program crashes.

I have attached a patch against latest SVN trunk.

I the code compiles but I was not able to autotest it as trunk autotest was crashing my Python.

Change History (1)

by Leith Bade, 12 years ago

Attachment: ogrct.cpp.patch added

Patch for ogrct.cpp

Note: See TracTickets for help on using tickets.