forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use name from header not alias when checking entry has expected name
Previously, an entry’s potentially aliased name would be used when checking that it has a particular name. The alias would always be applied, irrespective of the name in the header. As a result, when there was a clashing hash and an entry with a particular index did not have the expected name, this would be concealed by the alias being applied and the name check being done with the alias. This commit reworks JarEntry to store the name in its header in addition to its alias, if any. When checking that the entry has the expected name, the unaliased name is passed in and the entry compares it with the name from the header rather than the alias. Closes spring-projectsgh-15981
- Loading branch information
1 parent
20c39dc
commit 68e3de0
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters