NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/55443: setcchar() incorrectoly sets number of elements in cchar
>Number: 55443
>Category: lib
>Synopsis: setcchar() incorrectoly sets number of elements in cchar
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 01 17:10:00 +0000 2020
>Originator: Naman Jain
>Release: NetBSD 9.0
>Organization:
IIT Kanpur
>Environment:
NetBSD localhost 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The wcval->elements = 1; should be replaced with the length of wch[] in setcchar().
>How-To-Repeat:
>Fix:
Replace
wcval->elements = 1;
to
wcval->elements = len;
in setcchar() in cchar.c in libcurses.
Home |
Main Index |
Thread Index |
Old Index