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

SEGV in ZIP_ReadEntry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • core-libs
    • generic
    • generic



      Name: ks88420 Date: 11/17/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.


      ======================================================================

            Unassigned Unassigned
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: