[ARM] Fix NULL dereference of march_ext_opt
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 2 Mar 2018 10:46:32 +0000 (10:46 +0000)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 2 Mar 2018 10:47:14 +0000 (10:47 +0000)
commite7da50fa4b4f770240feda51ba60f6255073e54f
tree8ce12ce57bc934fe2cd73d685502194c5b516518
parented2592386c36bfc0b82049ce88758303b16ca075
[ARM] Fix NULL dereference of march_ext_opt

Commit 4d354d8b8932d450c77fd52f3501662827523014 introduced a NULL
pointer dereference by replacing a pointer assignment by a pointer
dereference assignment without adding a NULL pointer check. This patch
fixes it.

2018-03-02  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gas/
* config/tc-arm.c (md_begin): Add NULL pointer check before
dereferencing march_ext_opt.
gas/ChangeLog
gas/config/tc-arm.c