NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/59549: gdb is not ctype(3) safe
The following reply was made to PR toolchain/59549; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: toolchain/59549: gdb is not ctype(3) safe
Date: Thu, 24 Jul 2025 16:08:44 +0200
On Thu, Jul 24, 2025 at 02:00:01PM +0000, Thomas Klausner wrote:
> I'm still confused why
> /usr/src/external/gpl3/gdb/lib/libgdb/../../dist/gdb/ada-lang.c:1563
> is in the backtrace, but when you read that file, you can see that it
> calls isupper(), isalpha() and isdigit() on both 'const char' and
> 'std::string' in many many places, without checking the range or
> casting to 'unsigned char' first.
You need a symbol name with non-ASCII characters to trigger it.
The calls probably all are wrong on any machine with default signed chars.
Can you go up to frame #5 and print the first argument (which should be
the symbol name it is looking up)?
Martin
Home |
Main Index |
Thread Index |
Old Index