SEGV in ZIP_ReadEntry

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.3.0
    • Component/s: 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.


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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: