Skip to content

Do not set size in header for non files#3

Open
aonez wants to merge 2 commits intokayembi:mainfrom
aonez:main
Open

Do not set size in header for non files#3
aonez wants to merge 2 commits intokayembi:mainfrom
aonez:main

Conversation

@aonez
Copy link
Copy Markdown

@aonez aonez commented Jun 17, 2022

Some directories and links return a size using stat (return nil with FileManager), since we never write any data for non "normalFile" adding here the size will produce a bad header that will cause issues when parsed and data corruption.

aonez added 2 commits June 17, 2022 10:42
Leads to data corruption and parse issues

(cherry picked from commit f3860ffd0bab83e6396f7d6fc86a28b7a30937a5)
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