Opened 15 years ago
Closed 15 years ago
#3189 closed defect (fixed)
GDALGridCreate with NULL progress callback function
Reported by: | yilmaz | Owned by: | Even 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 (2)
comment:1 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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)