forked from Imagelibrary/binutils-gdb
Fix: A potential null_pointer_deference bug
PR 30954 * ldlang.c (map_input_to_output_sections): Check that os is non NULL before using it.
This commit is contained in:
@@ -4198,6 +4198,9 @@ map_input_to_output_sections
|
||||
os);
|
||||
break;
|
||||
case lang_data_statement_enum:
|
||||
if (os == NULL)
|
||||
/* This should never happen. */
|
||||
FAIL ();
|
||||
/* Make sure that any sections mentioned in the expression
|
||||
are initialized. */
|
||||
exp_init_os (s->data_statement.exp);
|
||||
|
||||
Reference in New Issue
Block a user