Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3339 closed defect (fixed)

RasterliteCreateCopy() might crash randomly on 32bit platform

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: rasterlite
Cc:

Description

An invalid use of sprintf(szTmp, "%llu", (GUIntBig)ptr) to print the address of a pointer into a string caused the string to contain a wrong address when ptr >= 0x80000000. CPLPrintPointer() should be used instead

Oddly, a warning is printed by GCC when the incorrect code is compiled as a C file, but not a C++ one

Change History (2)

comment:1 by Even Rouault, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in trunk (r18603) and in branches/1.7 (r18604)

comment:2 by Even Rouault, 14 years ago

Similar code, issue and fixes for IBuildOverviews() fixed in trunk (r18610) and in branches/1.7 (r18609)

Note: See TracTickets for help on using tickets.