Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-264748

GLX._initGlfw Treats Pointer as a String

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w40a
    • 1.20.1
    • None
    • Plausible
    • Crash, Debug
    • Important
    • Platform

      There is a small bug in `GLX._initGlfw`, the GLFW error callback contains the following code:

      ```Java

      (code, pointer) -> list.add(String.format(Locale.ROOT, "GLFW error during init: [0x%X]%s", code, pointer))

      ```

      when it should be
      ```Java

      (code, pointer) -> list.add(String.format(Locale.ROOT, "GLFW error during init: [0x%X]%s", code, MemoryUtil.memUTF8Safe(pointer)))

      ```

      or similar.

            gegy1000 [Mojang] Gegy
            gudenau gudenau
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: