Skip to content

c2patool 0.19.0 index out of bounds #1197

@hackerfactor

Description

@hackerfactor

Testing c2patool 0.19.0 against my suite of forgeries:

$ c2patool-0.19.0 -d shmoocon.jpg
[2025-07-01T05:03:45Z ERROR c2pa::status_tracker] Validation error: LogItem {
        kind: Failure,
        label: "self#jumbf=/c2pa/urn:uuid:88eb2bb3-d5f9-4516-9265-b65277b4b861/c2pa.assertions/c2pa.actions.v2",
        description: "Actions missing action array",
        crate_name: "c2pa",
        crate_version: "0.57.0",
        file: "sdk/src/claim.rs",
        function: "verify_actions",
        line: 1938,
        err_val: Some(
            "ValidationRule(\"No Action array in Actions\")",
        ),
        validation_status: Some(
            "assertion.action.malformed",
        ),
        ingredient_uri: None,
    }

thread 'main' panicked at sdk/src/claim.rs:1981:51:
index out of bounds: the len is 0 but the index is 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

$ RUST_BACKTRACE=full c2patool-0.19.0 -d shmoocon.jpg
[2025-07-01T05:06:08Z ERROR c2pa::status_tracker] Validation error: LogItem {
        kind: Failure,
        label: "self#jumbf=/c2pa/urn:uuid:88eb2bb3-d5f9-4516-9265-b65277b4b861/c2pa.assertions/c2pa.actions.v2",
        description: "Actions missing action array",
        crate_name: "c2pa",
        crate_version: "0.57.0",
        file: "sdk/src/claim.rs",
        function: "verify_actions",
        line: 1938,
        err_val: Some(
            "ValidationRule(\"No Action array in Actions\")",
        ),
        validation_status: Some(
            "assertion.action.malformed",
        ),
        ingredient_uri: None,
    }

thread 'main' panicked at sdk/src/claim.rs:1981:51:
index out of bounds: the len is 0 but the index is 0

The sample picture: https://fotoforensics.com/analysis.php?id=dc1be89f99cd320c5f7dbee556277e82ddd30b03.103760&fmt=orig

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: donestatus:triagedIssues that have been looked at but not working on yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions