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

Don't strcpy in os::strdup, use memcpy instead

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot

      Since the length is known from a strlen, memcpy can be used instead of strcpy. This avoids two passes over the string to find the terminating NUL character.

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

              Created:
              Updated: