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

Crash in linker_md.c due to dangling pointer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.1.8
    • 1.1.8
    • hotspot
    • 1.1.8
    • x86
    • windows_nt
    • Verified

      Running hotjava or other AWT apps (SwingSet, JavaTest etc) on Win32 with JDK 1.1.8 Chelsea often results in an access violations and a crash.

      The problem appears to be in linker_md.c, sysAddDLSegment, where the string library_name is being stored in a static array without being strdup'd or otherwise copied first. When the pointer goes out of scope dllarray[i].fn contains garbage, causing a crash next time it's dereferenced.

      Looks like this was caused by backing out a change between rev 1.31 and 1.32.

            duke J. Duke
            rkhansunw Robi Khan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: