Commit e7da50fa authored by Thomas Preud'homme's avatar Thomas Preud'homme

[ARM] Fix NULL dereference of march_ext_opt

Commit 4d354d8b 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.
parent ed259238
2018-03-02 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/tc-arm.c (md_begin): Add NULL pointer check before
dereferencing march_ext_opt.
2018-03-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
* config/tc-arm.c (cpu_variant, arm_arch_used, thumb_arch_used,
......
......@@ -25407,7 +25407,7 @@ md_begin (void)
from the processor. */
if (mcpu_fpu_opt)
selected_fpu = *mcpu_fpu_opt;
else
else if (march_fpu_opt)
selected_fpu = *march_fpu_opt;
#else
selected_fpu = fpu_default;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment