binutils Newspaper
JUNE 15, 2026
aarch64 Proposed

Aarch64: Add QLF_ERR to aarch64_opnd_qualifiers

Add an explicit entry for `AARCH64_OPND_QLF_ERR` in `aarch64_opnd_qualifiers` for completeness and robustness.

This patch adds an entry for AARCH64_OPND_QLF_ERR to the aarch64_opnd_qualifiers array. Although this entry should ideally never be used, its presence ensures that the array length matches the enum length, improving code robustness and preventing potential out-of-bounds memory accesses, though such accesses would have been detected previously.

In Details

The aarch64_opnd_qualifiers array in opcodes/aarch64-opc.c maps operand qualifiers to their properties. This patch adds an entry for AARCH64_OPND_QLF_ERR to ensure that the array length matches the enum length, preventing potential out-of-bounds accesses. While the ERR qualifier should not be used during normal operation, explicitly defining it improves robustness.

For Context

The assembler uses tables to look up information about instructions and their operands. This patch adds an entry to one of these tables for an "error" qualifier. This "error" entry should never actually be used, but adding it makes the table more complete and prevents potential crashes if the assembler tries to access it.

Filed Under: aarch64assemblerqualifierrobustness