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

SEGV in ZIP_ReadEntry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta2
    • generic
    • generic
    • Verified



      Name: krC82822 Date: 11/27/2000


      java version "1.3beta" (and merlin-beta)
      Java(TM) 2 Runtime Environment, Standard Edition (build randy-000811-12:17)
      Classic VM (build randy-000811-12:17, native threads, sunwjit)

      in ZIP_ReadEntry, after the call to InflateFully, there is a check if *msg == 0,
      however it is possible for msg to be NULL, so *msg SEGV's. The check should then
      be (msg==0 || *msg==0) (if *msg is even required.) The other possible solution
      would be to make sure that all failure cases of InflateFully set *msg.

      TEST CASE:
      Run in a limited memory model where memory runs out in inflate_blocks_new.

      -------------------------------

      17 Nov 2000, eval1127@eng -- since msg (apparently) only set to non-NULL
      if there's a ZIP error, it DOES appear possible that msg can be NULL
      and, therefore, the user's suggested check should be added.
      (user's suggested fix, and current merlin source excerpts,
       included in Comments section)

      (Review ID: 109025)
      ======================================================================

            kkladkosunw Konstantin Kladko (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: