Opened 17 years ago

Closed 17 years ago

#1774 closed defect (fixed)

ComputeBandStats loops for ever in some cases

Reported by: Ari Jolma Owned by: warmerdam
Priority: normal Milestone: 1.5.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

The C++ ComputeBandStats() code should validate nSampleStep and issue a runtime error for dangerous values (at least 0).

Change History (1)

comment:1 by warmerdam, 17 years ago

Milestone: 1.5.0
Resolution: fixed
Status: newclosed

Fixed in r11988. There was already logic to force nSampleStep in-bounds if it was too large, so I add logic to force it to 1 if it was too small. Patched only in trunk.

Note: See TracTickets for help on using tickets.