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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P1
    • 1.1.5
    • Affects Version/s: 1.1.5
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: