[Bug 3597] New: [IcedTea8] Potential overflow in printing sum of integer + 1

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon May 28 11:30:17 UTC 2018


https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3597

            Bug ID: 3597
           Summary: [IcedTea8] Potential overflow in printing sum of
                    integer + 1
           Product: IcedTea
           Version: 3.x-hg
          Hardware: all
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: gnu.andrew at redhat.com
                CC: unassigned at icedtea.classpath.org

/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/g++ -DLINUX -D_GNU_SOURCE -DAMD64
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/prims
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/precompiled
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/cpu/x86/vm
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/os_cpu/linux_x86/vm
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/os/linux/vm
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/os/posix/vm
-I/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/adlc
-I../generated -DASSERT -O2 -pipe -march=core2 -ggdb -mno-tls-direct-seg-refs
-Wformat=2 -Wno-error=format-nonliteral -DTARGET_OS_FAMILY_linux
-DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86
-DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2
-DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fno-rtti -fno-exceptions
-D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -g
-fno-omit-frame-pointer -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_x86
-DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_linux_x86
-DTARGET_OS_ARCH_MODEL_linux_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2
-DCOMPILER1 -DDONT_USE_PRECOMPILED_HEADER -fno-rtti -fno-exceptions
-D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -g
-fno-omit-frame-pointer -Werror -c -o ../generated/adfiles/output_h.o
/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/adlc/output_h.cpp 
/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/adlc/output_c.cpp:
In member function 'void ArchDesc::build_pipe_classes(FILE*)':
/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/adlc/output_c.cpp:563:6:
error: '%*d' directive output between 1 and 2147483647 bytes may cause result
to exceed 'INT_MAX' [-Werror=format-overflow=]
 void ArchDesc::build_pipe_classes(FILE *fp_cpp) {
      ^~~~~~~~
/home/andrew/builder/icedtea8/openjdk-boot/hotspot/src/share/vm/adlc/output_c.cpp:563:6:
note: directive argument in the range [0, 2147483647]
cc1plus: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20180528/8d5cf3a0/attachment-0001.html>


More information about the distro-pkg-dev mailing list