Skip to content

add protection against double free or corruption in from_buffer #494

@jkotan

Description

@jkotan

Since in h5cpp we don't expose raw pointers usage of from_buffer(data, flags) with ImageFlags::DONT_COPY and without ImageFlags::DONT_RELEASE always ends with

double free or corruption (!prev)
Aborted

To protect against the situation we check this a-priory and thew an exception.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions