Skip to content

zip_file_extra_field_delete: disallow deleting extra fields in torrentzip archives - #586

Open
filtede98 wants to merge 1 commit into
nih-at:mainfrom
filtede98:fix-torrentzip-extra-field-delete
Open

filtede98 wants to merge 1 commit into
nih-at:mainfrom
filtede98:fix-torrentzip-extra-field-delete

Conversation

@filtede98

Copy link
Copy Markdown

zip_file_extra_field_delete_by_id() and zip_file_extra_field_set() reject modifications to extra fields when ZIP_WANT_TORRENTZIP(za) is set, returning -1 with ZIP_ER_NOT_ALLOWED.

zip_file_extra_field_delete() was missing this check, allowing callers to delete extra fields from archives being converted to torrentzip. This patch adds the ZIP_WANT_TORRENTZIP check to match sibling extra field functions.

…tzip archives

zip_file_extra_field_delete_by_id() and zip_file_extra_field_set() reject modifications to extra fields when ZIP_WANT_TORRENTZIP(za) is set, returning -1 with ZIP_ER_NOT_ALLOWED.

zip_file_extra_field_delete() was missing this check, allowing callers to delete extra fields from archives being converted to torrentzip. Add the ZIP_WANT_TORRENTZIP check to match sibling extra field functions.

This branch has not been deployed

No deployments
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