Skip to content

ZSTD_seekTable_create_fromSeekable can cause segmentation faults #4200

@rorosen

Description

@rorosen

Describe the bug
ZSTD_seekTable_create_fromSeekable causes a segmentation fault when called with a ZSTD_seekable that is not initialized.

To Reproduce
Steps to reproduce the behavior:

  1. ZSTD_seekable* const stream = ZSTD_seekable_create();
  2. ZSTD_seekTable* const zst = ZSTD_seekTable_create_fromSeekable(stream);

Expected behavior
ZSTD_seekTable_create_fromSeekable returns a NULL pointer.

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