aboutsummaryrefslogtreecommitdiff
path: root/binutils/NEWS
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2023-12-20 11:17:39 +0100
committerAndreas Krebbel <krebbel@linux.ibm.com>2023-12-20 11:50:32 +0100
commita3fa108623c51846ff019fbcba9f483897d6f5f7 (patch)
tree509df2ed1078548ef3caccf98b854bef1aa8e706 /binutils/NEWS
parent730e7ddc243edff2755548c89dedac7293e5a5f6 (diff)
downloadfsf-binutils-gdb-a3fa108623c51846ff019fbcba9f483897d6f5f7.zip
fsf-binutils-gdb-a3fa108623c51846ff019fbcba9f483897d6f5f7.tar.gz
fsf-binutils-gdb-a3fa108623c51846ff019fbcba9f483897d6f5f7.tar.bz2
s390: Use safe string functions and length macros in s390-mkopc
Use strncpy() and snprintf() instead of strcpy() and strcat(). Define and use macros for string lengths, such as mnemonic, instruction format, and instruction description. This is a mechanical change, although some buffers have increased in length by one character. This has been confirmed by verifying that the generated opcode/s390-opc.tab is unchanged. opcodes/ * s390-mkopc.c: Use strncpy() and strncat(). Suggested-by: Nick Clifton <nickc@redhat.com> Signed-off-by: Jens Remus <jremus@linux.ibm.com> Reviewed-by: Andreas Krebbel <krebbel@linux.ibm.com>
Diffstat (limited to 'binutils/NEWS')
0 files changed, 0 insertions, 0 deletions