#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 , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r18603) and in branches/1.7 (r18604)