Skip to content

Conversation

@IGedeon
Copy link

@IGedeon IGedeon commented Oct 20, 2019

Wrong relative path on unpacking zip archives with ".","..",":" character sequences
on different platforms. bug #77978

The fix tries to separate Windows absolute paths from Unix paths that might contain a colon just before an slash relaying on the fact that the semicolon on windows absolute paths is always in the same position.

There might be a case for a relative Unix path that might look like a windows absolute path (x:\foo\bar) that might result in chopping the leading path (x:). I think this is acceptable and an improvement over the current bug in order to avoid using different conditions per operating system. This could result in different extraction paths depending on the OS, what might generally be undesirable, and could cause BC issues.

This is partially based on PR #4160 and its comments.

Wrong relative path on unpacking zip archives with ".","..",":" character sequences
on different platforms.

The fix tries to separate Windows absolute paths from Unix paths that might contain a colon just before an slash relaying on the fact that the semicolon on windows absolute paths is always in the same position.

There might be a case for a relative Unix path that might look like a windows absolute path (x:\foo\bar) that might result in chopping the leading path (x:). I think this is acceptable and an improvement over the current bug in order to avoid using different conditions per operating system. This could result in different extraction paths depending on the OS, what might generally be undesirable, and could cause BC issues.

This is partially based on PR #4160 and its comments.
@cmb69 cmb69 added the Bug label Oct 20, 2019
@cmb69
Copy link
Member

cmb69 commented Oct 28, 2019

CI failed on Linux and Windows. Could you please have a look @IGedeon?

@cmb69
Copy link
Member

cmb69 commented Jun 4, 2020

The CI test failures still have not been resolved, so I'm closing this PR for now.

@cmb69 cmb69 closed this Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants