elharo opened a new issue, #97:
URL: https://github.com/apache/maven-jarsigner/issues/97

   The temp file path in `unsignArchive()` is deterministic: 
`jarFile.getAbsolutePath() + ".unsigned"`.
   
   If two threads or processes call `unsignArchive()` on the same jar 
concurrently, both write to the same `.unsigned` file, causing data corruption. 
The losing writer's `Files.move()` then overwrites the winner's result.
   
   **File:** `JarSignerUtil.java:76-105`
   
   **Suggested fix:** Use `Files.createTempFile()` to generate a unique temp 
file path, or synchronize the method on the jar file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to