Opened 10 years ago

Closed 10 years ago

Last modified 10 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 Changed 10 years ago by Even Rouault

Resolution: fixed
Status: newclosed

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

comment:2 Changed 10 years ago by Even Rouault

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.