Skip to content

Add data files and then delete other entries, abnormal data will appear in the zip archive. #228

@lindyer

Description

@lindyer
/*read zip file to buffer */
auto za = ZipArchive::fromWritableBuffer(buffer, buffer_size, ZipArchive::Write);
/* read file1 to buf */
za.addData("path/to/file1", file1_buffer, file2_buffer_size, true);
za.deleteEntry("path/to/file2");
za.close(); 
/* write buffer to zip file */
/* when decompressing with 7z, it prompts "Invalid data besides valid data" */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions