Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#6907 closed defect (fixed)

Northwood GRC driver fails with 0-len class names in classified file

Reported by: Daniel Morissette Owned by: Daniel Morissette
Priority: normal Milestone: 1.11.6
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

I came across a Northwood GRC classified file (8 bit PCT) that failed to be opened/detected as a GDAL supported format.

Upon investigation, I found that the reader code failed reading the header because one of the class labels is an empty string (0-len).

Unfortunately I don't think I can share the test file here, but the fix is trivial enough so there is little risk.

Change History (4)

comment:1 by Daniel Morissette, 7 years ago

Resolution: fixed
Status: assignedclosed

In 38733:

Handle case of 0-len GRC class names (fixes #6907)

comment:2 by Daniel Morissette, 7 years ago

In 38734:

Handle case of 0-len GRC class names (backport, fixes #6907)

comment:3 by Daniel Morissette, 7 years ago

In 38735:

Handle case of 0-len GRC class names (backport, fixes #6907)

comment:4 by Daniel Morissette, 7 years ago

Fix backported, will be part of the following GDAL releases if/when they happen: 2.3.0 (current trunk), 2.2.1 and 1.11.6

Note: See TracTickets for help on using tickets.