RFR: 8203223: Signed integer overflow in ImageStrings::hash_code (libjimage.so)
Aleksey Shipilev
shade at redhat.com
Wed May 16 08:10:54 UTC 2018
On 05/16/2018 10:02 AM, Severin Gehwolf wrote:
> $ bash imageFile.o.cmdline
> /disk/openjdk/upstream-sources/openjdk-hs/src/java.base/share/native/libjimage/imageFile.cpp:60:33: error: macro "assert" passed 2 arguments, but takes just 1
> assert(seed > 0, "invariant");
Oh, WTF! So it is the trick to print the assert message with C asserts.
> New webrev:
> http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8203223/webrev.02/
Looks good!
-Aleksey
More information about the core-libs-dev
mailing list