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

VM_HeapDumper hits assert with bad dump_len

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b110
    • Verification:
      Not verified

      Backports

        Description

        heapDumper doesn't check the size of segment while dumping an array. So if (bytes written to segment + length of array) > max_juint it overflows u4 segment length field and crash later on assert in heapDumper.cpp:

        assert(dump_len >= 0 && dump_len <= max_juint) failed: bad dump length

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aeriksso Andreas Eriksson (Inactive)
                  Reporter:
                  jprovino Joseph Provino (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: