Skip to content

clp-s missing support for empty json objects - exits with error on decompression #534

Description

@AVMatthews

Bug

If you try to compress and then extract an empty json object, clp-s issues the following errors.

2024-09-09T17:59:45.756-04:00 [error] FileWriter not closed before being destroyed - may cause data loss
2024-09-09T17:59:45.757-04:00 [error] src/clp_s/ZstdDecompressor.cpp:43  Error code: 1

CLP version

9537fde

Environment

macOS 12.5

Reproduction steps

To reproduce the error, try the following commands with the empty json file.
test-empty.json

./clp-s c test-archive test-empty.json
./clp-s x test-archive test-decompress

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions