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

"java -Xmx16Mfoobar ..." is accepted without complaint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.1
    • hotspot
    • mantis
    • generic
    • generic

      atomll(char *, jlong *) in src/share/vm/runtime/arguments.cpp does not
      fully verify that the memory size specification string does not contain illegal
      characters. At the present time, only the first character after the last
      non-digit is checked. Subsequent characters are ignored.

      $ java -Xss4Mfoobar Hi
      hi
      $ java -Xmx16Mfoobar Hi
      hi
      $ java -Xms8Mfoobar Hi
      hi
      $ java -version
      java version "1.4.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b14)
      Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed mode)

      -- iag@sfbay 2002-06-20

            wtaosunw Wei Tao (Inactive)
            iris Iris Clark
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: