aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-02-01 16:53:27 +1030
committerAlan Modra <amodra@gmail.com>2023-02-01 17:12:14 +1030
commit6ca36c85a09a6c8b9f32e56036a0e237423792c8 (patch)
tree561d6b815910fffba47cb8d8fe2aa4a9dbc693bc /gas
parent19455ee11dee11bd4ad1d05aac6f86114ec37848 (diff)
downloadgdb-6ca36c85a09a6c8b9f32e56036a0e237423792c8.zip
gdb-6ca36c85a09a6c8b9f32e56036a0e237423792c8.tar.gz
gdb-6ca36c85a09a6c8b9f32e56036a0e237423792c8.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/messages.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gas/messages.c b/gas/messages.c
index 0db075d..7c018ac 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);