Skip to content

hwcaps: check elf_aux_info() return value in GetElfHwcapFromElfAuxInfo - #475

Open
brad0 wants to merge 1 commit into
google:mainfrom
brad0:elf_aux_info_check
Open

brad0 wants to merge 1 commit into
google:mainfrom
brad0:elf_aux_info_check

Conversation

@brad0

@brad0 brad0 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Do not rely on elf_aux_info() leaving the output buffer untouched on
failure, since that is not part of its documented contract. Check the
return value and set hwcap to 0 on error.

Do not rely on elf_aux_info() leaving the output buffer untouched on
failure, since that is not part of its documented contract. Check the
return value and set hwcap to 0 on error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant