Fix potential buffer overflows with sprintf and very large integer values.
authorNick Clifton <nickc@redhat.com>
Fri, 1 Jul 2016 11:35:01 +0000 (12:35 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 1 Jul 2016 11:35:01 +0000 (12:35 +0100)
commit98a4fc78f9dab76b5ada3551a7bef36db8a3ed05
treed5669d184079c4ad1d2432a6203d22e2db5fb8bd
parent20aa2c606ef682889722b03b1d874befa84fbf53
Fix potential buffer overflows with sprintf and very large integer values.

binutuils* prdbg.c (pr_enum_type): Use a buffer big enough to hold an
extremely large decimal value.
(pr_range_type): Likewise.
(pr_array_type): Likewise.
(pr_struct_field): Likewise.
(pr_class_baseclass): Likewise.
(pr_class_method_variant): Likewise.
(pr_tag_type): Likewise.
(pr_int_constant): Likewise.
(pr_typed_constant): Likewise.
(pr_variable): Likewise.
(pr_function_parameter): Likewise.
(pr_start_block): Likewise.
(pr_lineno): Likewise.
(pr_end_block): Likewise.
(tg_enum_type): Likewise.
(tg_int_constant): Likewise.
(tg_typed_constant): Likewise.
(tg_start_block): Likewise.

gas * macro.c (macro_expand_body): Use a buffer big enough to hold an
extremely large integer.
binutils/ChangeLog
binutils/prdbg.c
gas/ChangeLog
gas/macro.c