Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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 warmerdam, 13 years ago

Milestone: 6.0.1 release5.6.7 release
Resolution: fixed
Status: newclosed

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).

comment:2 by warmerdam, 13 years ago

Also applied in branch-6-0 (r11734).

Note: See TracTickets for help on using tickets.