Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266167 Clean up GCC 11 warnings
  3. JDK-8266172

-Wstringop-overflow happens in vmError.cpp

XMLWordPrintable

    • b22

        In function 'void crash_with_segfault()',
            inlined from 'static void VMError::controlled_crash(int)' at /home/ysuenaga/git-forked/jdk/src/hotspot/share/utilities/vmError.cpp:1804:33:
        /home/ysuenaga/git-forked/jdk/src/hotspot/share/utilities/vmError.cpp:1774:15: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
         1774 | *crash_addr = 'X';
              | ~~~~~~~~~~~~^~~~~

              ysuenaga Yasumasa Suenaga
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: