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

Don't use memset to initialize members in FileMapInfo and fix memory leak

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b16

      Backports

        Description

        FileMapInfo uses memset in its constructor to initialize data member, it is generally a bad idea. It can break things badly if adds a new member with a non-trivial constructor and memset is not suitable.

        Besides, it leaks malloc'd _header member.
         

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                zgu Zhengyu Gu
                Reporter:
                zgu Zhengyu Gu
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: