public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27249] New: libSegFault.so does not output signal number properly
@ 2021-01-26 13:55 vt at altlinux dot org
2021-02-02 0:42 ` [Bug libc/27249] " ldv at sourceware dot org
2021-02-07 15:24 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: vt at altlinux dot org @ 2021-01-26 13:55 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27249
Bug ID: 27249
Summary: libSegFault.so does not output signal number properly
Product: glibc
Version: 2.32
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: vt at altlinux dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
libSegFault (used by catchsegv) tries to output signal number, but fails.
Example output is:
> *** signal
Printing code is:
WRITE_STRING ("*** ");
write_strsignal (fd, signal);
WRITE_STRING ("\n");
Where write_strsignal is defined as:
static void
write_strsignal (int fd, int signal)
{
char buf[30];
char *ptr = _itoa_word (signal, &buf[sizeof (buf)], 10, 0);
WRITE_STRING ("signal ");
write (fd, buf, &buf[sizeof (buf)] - ptr);
}
Thus, after printing signal number into the tail of buf[] it outputs buf from
the beginning, writing garbage to the output.
Perhaps, it should be:
write (fd, ptr, &buf[sizeof (buf)] - ptr);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/27249] libSegFault.so does not output signal number properly
2021-01-26 13:55 [Bug libc/27249] New: libSegFault.so does not output signal number properly vt at altlinux dot org
@ 2021-02-02 0:42 ` ldv at sourceware dot org
2021-02-07 15:24 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: ldv at sourceware dot org @ 2021-02-02 0:42 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27249
Dmitry V. Levin <ldv at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Assignee|unassigned at sourceware dot org |ldv at sourceware dot org
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Dmitry V. Levin <ldv at sourceware dot org> ---
Fixed by commit f9be44c7e6d90cb1fe3a0fbe3cc299ac783f0be8.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/27249] libSegFault.so does not output signal number properly
2021-01-26 13:55 [Bug libc/27249] New: libSegFault.so does not output signal number properly vt at altlinux dot org
2021-02-02 0:42 ` [Bug libc/27249] " ldv at sourceware dot org
@ 2021-02-07 15:24 ` fweimer at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2021-02-07 15:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27249
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
Target Milestone|--- |2.34
CC| |fweimer at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-07 15:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 13:55 [Bug libc/27249] New: libSegFault.so does not output signal number properly vt at altlinux dot org
2021-02-02 0:42 ` [Bug libc/27249] " ldv at sourceware dot org
2021-02-07 15:24 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).