This gist contains the output from validating that this commit: actually fixes the race condition manifested in the unpatched.output file. See the commit message for more information.
The outputs were generated using the following bash commands:
(for i in `seq 1 10`;
do
java -jar /tmp/bad-jar.jar text1.png text1-symlink.png --multi
done) > /tmp/unpatched.output
(for i in `seq 1 10`;
do
java -jar target/javase-3.2.2-SNAPSHOT-jar-with-dependencies.jar text1.png text1-symlink.png --multi
done) > /tmp/patched.output
Here bad-jar.jar
was generated with a fresh compilation of zxing commit 1fbefcac3146bf61efadb2d5da428b0f559d630c, and both jar files were generated using the following commands:
mvn package -DskipTests
cd javase
mvn -DskipTests package assembly:single
text1.png
was generated on https://www.the-qrcode-generator.com/ and is a QR code encoding "text1". text1-symlink.png
is a symlink to text1.png
. System information:
- OS X El Capitan 10.11.2
- Java version:
$ java -version
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)