Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254270

Linux 32 bit build doesn't compile libjdwp/log_messages.c

XMLWordPrintable

    • svc
    • b24

        Even though this isn't a supported platform, it would be nice if it built so that we can verify cross platform changes.

        src/jdk.jdwp.agent/share/native/libjdwp/log_messages.c:82:29: error: '%s' directive output may be truncated writing up to 56 bytes into a region of size between 52 and 76 [-Werror=format-truncation=]
        [2020-10-08T21:31:22,174Z] 82 | "%s.%.3d %s", timestamp_date_time,
        [2020-10-08T21:31:22,174Z] | ^~
        [2020-10-08T21:31:22,174Z] 83 | (int)(millisecs), timestamp_timezone);
        [2020-10-08T21:31:22,174Z] | ~~~~~~~~~~~~~~~~~~

        src/jdk.jdwp.agent/share/native/libjdwp/log_messages.c:81:11: note: 'snprintf' output between 6 and 86 bytes into a destination of size 81
        [2020-10-08T21:31:22,174Z] 81 | (void)snprintf(tbuf, ltbuf,
        [2020-10-08T21:31:22,174Z] | ^~~~~~~~~~~~~~~~~~~~~
        [2020-10-08T21:31:22,174Z] 82 | "%s.%.3d %s", timestamp_date_time,
        [2020-10-08T21:31:22,174Z] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        [2020-10-08T21:31:22,174Z] 83 | (int)(millisecs), timestamp_timezone);
        [2020-10-08T21:31:22,174Z] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

              coleenp Coleen Phillimore
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: