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

The Access Bridge 1.0.1 Installer source code contains errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.0.3
    • Component/s: client-libs
    • Labels:

      Description



      Name: nt126004 Date: 09/18/2001


      java version "1.3.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
      Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

      In several places, the installer code (AccessBridgeInstaller.cpp) fails to
      allocate space for the terminating null char on strings. For example, in
      JVM::JVM(JVM *nextJVM, char *vmPath)

          path = (char *) malloc(strlen(vmPath));
          strcpy(path, vmPath);

      If you search for all instances of malloc with strlen, you will see that
      every one of them is wrong.

      A minor, second complaint - the header file "AccessBridgeTester.h" is missing
      from src.zip.
      (Review ID: 131798)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            lmonsantsunw Lynn Monsanto (Inactive)
            Reporter:
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: