Skip to content

Conversation

@olszomal
Copy link
Collaborator

@olszomal olszomal commented Feb 3, 2026

Pull Request Type

  • Bug fix
  • New feature
  • Code style / formatting / renaming
  • Refactoring (no functional or API changes)
  • Build / CI related changes
  • Documentation
  • Other (please describe):

Related Issue

Issue number: N/A

Current Behavior

Error paths in ZIP local header handling could free fileName and extraField multiple times, leading to process aborts due to double free.

New Behavior

ZIP local header buffers are explicitly set to NULL after being freed, making cleanup idempotent and preventing double free crashes.

Scope of Changes

Updates ZIP parsing error paths to safely free and nullify local header buffers without changing normal execution flow.

Testing

  • Existing tests
  • New tests added
  • Manual testing

Additional Notes

License Declaration

  • I hereby agree to license my contribution under the project's license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant