]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: Fix arm_machine_flag_name version string.
authorMark Wielaard <mark@klomp.org>
Mon, 13 Nov 2023 21:38:10 +0000 (22:38 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 13 Nov 2023 21:38:10 +0000 (22:38 +0100)
commit373f5212677235fc3ca6068b887111554790f944
treef93a7c27ecb0234aa18ca687346bc245325df782
parent54864bcdd687f6ac3966b016800db628f46e4973
backends: Fix arm_machine_flag_name version string.

arm_machine_flag_name checks the version byte and if not zero returns
a version string. There are only 5 versions defined. So check the
version byte is not larger.

* backends/arm_machineflagname.c (arm_machine_flag_name):
Check version <= 0, otherwise return NULL.

https://sourceware.org/bugzilla/show_bug.cgi?id=31058

Signed-off-by: Mark Wielaard <mark@klomp.org>
backends/arm_machineflagname.c