Skip to content

NITF: Wrong index for image segment #5855

@aviborg

Description

@aviborg

Expected behavior and actual behavior.

When reading NITF files containing more than one image segments the first image segment size is used to base64 all segment metadata strings.
Causes random read access vioaltion crashes when the first segment size is larger then subsequent sizes.

Steps to reproduce the problem.

Read a NITF-file with more than one image segment where the first metadata string is larger than subsequent ones.

Operating system

Any

GDAL version and provenance

3.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions