Prevent overflowing the selected_cpu_name buffer in the ARM assembler.
authorJim Wilson <jim.wilson@linaro.org>
Tue, 27 Oct 2015 09:33:08 +0000 (09:33 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 27 Oct 2015 09:33:08 +0000 (09:33 +0000)
commitef8e6722f2eaae6d65b360459451f57f1350d2af
tree7d4454525af9cd6183dc9969bc8dfe5bc7406d30
parent469bdc72e7b00509d6578f5caca01a45f5db5027
Prevent overflowing the selected_cpu_name buffer in the ARM assembler.

* config/tc-arm.c (selected_cpu_name): Increase length of array to
accomodate "Samsung Exynos M1".
(arm_parse_cpu): Add assertion and length check to prevent
overfilling selected_cpu_name.
gas/ChangeLog
gas/config/tc-arm.c