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

Nop sled test are throwing java.lang.OutOfMemoryError exception

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      Description

      Tested JDK build : 7
      Browser: IE7/8 and FF3.6/FF3.6

      Try loading the following scenario which is using NOP-sled technique for exploiting a stack buffer overflow
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ALC/JvmGifVulPoc.html
      Link to Java source:
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/ALC/JvmGifVulPoc.java

      If following exception is getting raised then bug is reproduced
      Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
      at JvmGifVulPoc.paint(JvmGifVulPoc.java:296)
      at sun.awt.RepaintArea.paintComponent(Unknown Source)
      at sun.awt.RepaintArea.paint(Unknown Source)
      at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
      at JvmGifVulPoc.paint(JvmGifVulPoc.java:296)
      at sun.awt.RepaintArea.paintComponent(Unknown Source)
      at sun.awt.RepaintArea.paint(Unknown Source)
      at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

      Bug is also reproducible with 6u21

        Attachments

          Activity

            People

            Assignee:
            ngthomas Thomas Ng (Inactive)
            Reporter:
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: