Opened 5 months ago

Closed 5 months ago

Last modified 5 months 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 Changed 5 months ago by Daniel Morissette

Resolution: fixed
Status: assignedclosed

In 38733:

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

comment:2 Changed 5 months ago by Daniel Morissette

In 38734:

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

comment:3 Changed 5 months ago by Daniel Morissette

In 38735:

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

comment:4 Changed 5 months ago by Daniel Morissette

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.