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

The class LogSelection copies uninitialized memory

XMLWordPrintable

    • b17

        The class LogSelection's custom constructor does not initialize the whole _tags array but is lacking a custom copy constructor and assignment operator. This means that any copy will technically copy uninitialized memory, which is technically undefined behavior.

        We fill the whole array to avoid this issue.

              jsjolen Johan Sjölen
              jsjolen Johan Sjölen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: