Log in
Skip to main content
Skip to sidebar
Dashboards
Projects
Issues
Help
Jira Core help
Keyboard Shortcuts
About Jira
Jira Credits
Log In
Watched Subcomponents
JDK
JDK-8354453
Don't strcpy in os::strdup, use memcpy instead
Log In
Open
Export
null
XML
Word
Printable
Details
Type:
Enhancement
Resolution:
Unresolved
Priority:
P4
Fix Version/s:
tbd
Affects Version/s:
None
Component/s:
hotspot
Labels:
os
starter
Subcomponent:
runtime
Description
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.
Attachments
Issue Links
links to
Review(master)
openjdk/jdk/24651
Activity
People
Assignee:
Unassigned
Reporter:
Johan Sjölen
Votes:
0
Vote for this issue
Watchers:
2
Start watching this issue
Dates
Created:
2025-04-11 14:21
Updated:
2 days ago 09:33