[Bug stdio/28828] New: fputwc crashes
jobol at nonadev dot net
sourceware-bugzilla@sourceware.org
Thu Jan 27 13:01:08 GMT 2022
https://sourceware.org/bugzilla/show_bug.cgi?id=28828
Bug ID: 28828
Summary: fputwc crashes
Product: glibc
Version: 2.33
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: stdio
Assignee: unassigned at sourceware dot org
Reporter: jobol at nonadev dot net
Target Milestone: ---
Created attachment 13933
--> https://sourceware.org/bugzilla/attachment.cgi?id=13933&action=edit
short program
on amd64, debian.
the program b.c attached (and listed below). Crashes with SIGSEGV in the first
fputwc.
It does not crashes if I comment the line 8.
1: #include <stdio.h>
2: #include <wchar.h>
3: int main(int ac, char **av)
4: {
5: wint_t c;
6:
7: setvbuf(stdin, NULL, _IOLBF, 0);
8: setvbuf(stdout, NULL, _IOLBF, 0);
9: c = fgetwc(stdin);
10: fputwc(c, stdout);
11: fputwc(10, stdout);
12: return 0;
13: }
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list