Skip to content

Use of deallocated buffer while recovering from nested file write #107

@abbeycode

Description

@abbeycode

Run the test case -[ModesTests testModes_NestedWrites] with the Address Sanitizer turned on, and the -[UZKArchive closeFile:inMode:] method gets called for the inner write, causing the outer write to use a deallocated pointer when it attempts to close the archive. Instead, don't close the file when the inner write fails to open the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions