From 6ca36c85a09a6c8b9f32e56036a0e237423792c8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 1 Feb 2023 16:53:27 +1030 Subject: [PATCH] Recursion in as_info_where This function has a gas_assert, ie. possible call to as_abort, which calls as_report_context, which calls as_info_where. * messages.c (as_info_where): Don't gas_assert. --- gas/messages.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gas/messages.c b/gas/messages.c index 0db075d779c..7c018acf69f 100644 --- a/gas/messages.c +++ b/gas/messages.c @@ -141,8 +141,6 @@ as_info_where (const char *file, unsigned int line, unsigned int indent, va_list args; char buffer[2000]; - gas_assert (file != NULL && line > 0 && indent <= INT_MAX); - va_start (args, format); vsnprintf (buffer, sizeof (buffer), format, args); va_end (args); -- 2.30.2