From: Adam F. <ada...@uk...> - 2018-05-18 16:10:12
|
Hi There, I'm trying to fix a bug whereby compiling jchuff.c (link below, to avoid ambiguity) causes the OpenJDK build to fail due to the array-bounds warning generated when these criteria are met: - The platform is pLinux or zLinux - The gcc version is 4.8.5 (default release on many linux-based OS'). - The optimization level is -O3 OpenJDK's copy of jchuff: http://hg.openjdk.java.net/jdk/jdk/file/d9bc8557ae16/src/java.desktop/share/native/libjavajpeg/jchuff.c After some poking around, I discovered that making a simple change to jchuff.c can prevent the warning. http://cr.openjdk.java.net/%7Estuefe/webrevs/8200052-fix-warning-in-jchuff.c/webrev.00/webrev/src/java.desktop/share/native/libjavajpeg/jchuff.c.udiff.html The OpenJDK community is willing to accept the change, but is concerned that the next merge from your upstream source will splat the change. Could I impose on you to add this change to your source, thus preventing said splat? Best Regards Adam P.S. It would be great to get this source into the latest IJG source as well (e.g. 9c), but their contact page (url below) doesn't appear to work. A spinny thingy appears when you click send, but nothing else happens. http://jpegclub.org/reference/contact/ Here's hoping the IJG, or someone with a line to them, is monitoring this list so we can get the fix across. Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU |