Skip to content

[Comgr] Use memcpy in amd_comgr_symbol_get_info NAME handler#3208

Open
lamb-j wants to merge 1 commit into
amd-stagingfrom
comgr/symbol-get-info-memcpy
Open

[Comgr] Use memcpy in amd_comgr_symbol_get_info NAME handler#3208
lamb-j wants to merge 1 commit into
amd-stagingfrom
comgr/symbol-get-info-memcpy

Conversation

@lamb-j

@lamb-j lamb-j commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Replace strcpy with a length-based memcpy in the AMD_COMGR_SYMBOL_INFO_NAME case of amd_comgr_symbol_get_info, matching the pattern used by the other *_get_info handlers.

Behavior is unchanged: Value is a caller-allocated buffer sized via AMD_COMGR_SYMBOL_INFO_NAME_LENGTH (+1 for the NUL) per the documented API contract. This is a cosmetic change to clear a static-scan signature; it is not a security fix (a true bound would require an API/ABI change, which is not warranted).

ISSUE ID: ROCM-26574

Replace strcpy with a length-based memcpy in the
AMD_COMGR_SYMBOL_INFO_NAME case to match the other *_get_info handlers.
Behavior is unchanged: the caller sizes the buffer via
AMD_COMGR_SYMBOL_INFO_NAME_LENGTH per the API contract.

ISSUE ID: ROCM-26574
@lamb-j lamb-j requested a review from chinmaydd as a code owner July 6, 2026 00:45
@github-actions github-actions Bot added the comgr Related to Code Object Manager label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comgr Related to Code Object Manager

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants