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

The Access Bridge 1.0.1 Installer source code contains errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.0.3
    • 1.3.1
    • client-libs



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: