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

VMError::error_string has incorrect format usage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • None
    • b04

      In VMError::error_string there is a use of jio_snprintf that prints a pointer. It uses PTR_FORMAT, which is correct. But it uses the pointer directly as the argument, rather than using the `p2i` helper function. It happens to accidentally work, but is warning about if gcc's printf checking is enabled for that call.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: