Ticket #3189 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

GDALGridCreate with NULL progress callback function

Reported by: yilmaz Owned by: rouault
Priority: low Milestone: 1.6.3
Component: GDAL_Raster Version: 1.6.2
Severity: minor Keywords: GDALGridCreate, progress, callback, NULL
Cc:

Description

In the information header of function "GDALGridCreate" (and therefore in the corresponding documentation), it is stated that the progress callback function and its associated argument can be passed as NULL:

@param pfnProgress a GDALProgressFunc() compatible callback function for
reporting progress or NULL.
@param pProgressArg argument to be passed to pfnProgress.  May be NULL.

In the function body, however, the callback function is called regardless of its being NULL, which leads to memory access violation.

Change History

Changed 4 years ago by rouault

  • owner changed from warmerdam to rouault
  • status changed from new to assigned

Changed 4 years ago by rouault

  • status changed from assigned to closed
  • resolution set to fixed

r17849 /trunk/gdal/alg/gdalgrid.cpp: Fix segfault when GDALGridCreate() is called with pfnProgress == NULL (#3189) r17850 /branches/1.6/gdal/alg/gdalgrid.cpp: Fix segfault when GDALGridCreate() is called with pfnProgress == NULL (#3189)

Note: See TracTickets for help on using tickets.