PR 30951
* ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
2023-10-09 Nick Clifton <nickc@redhat.com>
2023-10-09 Nick Clifton <nickc@redhat.com>
+ PR 30951
+ * ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
+
PR 30954
* ldlang.c (map_input_to_output_sections): Check that os is non
NULL before using it.
PR 30954
* ldlang.c (map_input_to_output_sections): Check that os is non
NULL before using it.
yy_input (char *buf, int max_size)
{
int result = 0;
yy_input (char *buf, int max_size)
{
int result = 0;
- if (YY_CURRENT_BUFFER->yy_input_file)
+ if (YY_CURRENT_BUFFER != NULL && YY_CURRENT_BUFFER->yy_input_file)