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

awt_MToolkit_loop switches on xev.type, which may contain garbage.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.1.5
    • 1.1.5
    • client-libs
    • None
    • 1.1.5
    • sparc
    • solaris_2.6
    • Verified

        In awt_MToolkit.c, function awt_MToolkit_loop did *not* check whether
        the call to XtAppPeekEvent returned True or False. A True return value
        indicates that it found an X event on the queue, a False value that it
        did not. But if it returned False, this code went ahead and switched on
        the event type in xev.type anyway, which may contain garbage on the stack.
        In that case, the execution of this switch was unsafe and unpredictable.

              mbronsonsunw Mike Bronson (Inactive)
              mbronsonsunw Mike Bronson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: