Opened 12 years ago

Last modified 12 years ago

#2330 assigned defect

Animated GIF opening bug in GDAL plugin

Reported by: rashadkm Owned by: rashadkm
Priority: highest Milestone: OSSIM 2.0
Component: Tile processing Version: ossim/OMAR 1.8.14-3
Severity: blocker Keywords: ossim, gdal
Cc:

Description

Opening animated GIF gives segfault on OSSIM

ossim-info works fine getTile(clipRect) gives a segfault. The error is in calling

http://osgeo-org.1560.n6.nabble.com/Animated-GIF-opening-bug-in-GDAL-plugin-td5020477.html

ossimGdalTileSource::loadIndexTo3BandTileTemplate(ossim_uint8(0),

ossim_uint8(0), clipRect, aGdalBandStart, anOssimBandStart);

Attachments (1)

ossimGdalTileSource.diff (694 bytes ) - added by rashadkm 12 years ago.

Download all attachments as: .zip

Change History (2)

by rashadkm, 12 years ago

Attachment: ossimGdalTileSource.diff added

comment:1 by rashadkm, 12 years ago

Status: newassigned

inside the function loadIndexTo3BandTileTemplate

anOssimBandStart is incremented by 2 in but actual gif image has only 3 bands

From gdb

so a call is happening here like loadIndexTo3BandTileTemplate(ossim_uint8(0),

ossim_uint8(0), clipRect, 2, 3);

from ossimGdalTileSource::getTile(...) which increment anOssimBandStart by 3 each time which is less than the input data resulting in a seg fault.

Note: See TracTickets for help on using tickets.