Skip to content

ZSTD_estimateCCtxSize() and ZSTD_compressSequences()Β #3747

Closed
@encode84

Description

@encode84

If allocate memory according to ZSTD_estimateCCtxSize() with level 3 or below, the ZSTD_compressSequences( ) will return error -64 (ZSTD_error_memory_allocation)
With level 4 and above it works fine. Is it expected behavior?

(Of course I'm using it in pair with ZSTD_initStaticCCtx())

If use ZSTD_compressSequences() with ZSTD_createCCtx() no issues what so ever.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions