This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [patch] buffer overrun fix in backtracesyms.c
- To: Byron Stanoszek <gandalf at winds dot org>
- Subject: Re: [patch] buffer overrun fix in backtracesyms.c
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 02 Nov 2000 13:58:02 -0800
- Cc: libc-alpha at sources dot redhat dot com
- References: <Pine.LNX.4.21.0011020827190.6546-100000@winds.org>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Byron Stanoszek <gandalf@winds.org> writes:
> Glancing at the backtrace_symbols() function, I noticed that a
> buffer overrun can occur on a 64-bit machine. The string [+%p] has a
> maximum character length of 22 on a 16-bit machine, not 19 as the
> code seems to believe (with WORD_WIDTH == 16). This patch will fix
> the problem:
Thanks, I've applied the patch.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------