Opened 19 years ago
Last modified 16 years ago
#1440 closed defect
Problem with shapefile indexes and 64bits long integers. — at Initial Version
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapServer C Library | Version: | 4.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
After upgrading to FreeBSD/AMD64, polygons started to randomly appear and disappear on maps created by mapscript (or mapserver itself) from shapefiles. The problem seems to be with searchDiskTreeNode in maptree.c.: long offset; [..] res = fread( &offset, 4, 1, disktree->fp ); A long is 8 bytes on FreeBSD/AMD64 (and probably many other 64bits) plaforms. Initializing offset to 0 solved the problem here. readTreeNode is probably also affected.
Note:
See TracTickets
for help on using tickets.
Patch to change maptree offset type from long to int32