#17636: fgetws function crashes the program if less than num - 1 characters are
present in the current line
--------------------------+-----------------------------
Reporter: Cacodemon345 | Owner: nobody
Type: bug | Status: new
Priority: critical | Milestone: Unscheduled
Component: - General | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Platform: All
--------------------------+-----------------------------
If the current line being read by fgetws has less than num - 1 characters
present in the current line (where num is the number of wide-characters
requested in the 2nd argument) and an additional line comes after it,
fgetws will cause the program to crash. This doesn't happen under
Linux/macOS/Windows at all.
See attached files for reproducing the bug.
--
Ticket URL: <https://dev.haiku-os.org/ticket/17636>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.