#3886 closed defect (fixed)
Crash with AVERAGE raster resampling and funky reprojection
Reported by: | warmerdam | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 5.6.7 release |
Component: | MapServer C Library | Version: | 5.6 |
Severity: | normal | Keywords: | |
Cc: |
Description
I have a situation where a map requested in UTM for an unreasonably large region from a lat/long raster with averaged sample crashes in msSourceSample().
Change History (2)
comment:1 by , 13 years ago
Milestone: | 6.0.1 release → 5.6.7 release |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The problem turns out to be reprojection producing very large positive values in dfXMin in msAverageRasterResampler(). In msAverageSample() this is cast to int and because it exceeds INT_MAX it wraps to a very negative integer number. This results in an access outside the raster buffer.
Fixed in trunk (r11732) and 5.6 branch (r11733).