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

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

    XMLWordPrintable

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b24

      Backports

        Description

        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] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                coleenp Coleen Phillimore
                Reporter:
                coleenp Coleen Phillimore
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: