Opened 3 years ago
Closed 3 years ago
#17636 closed bug (fixed)
fgetws function crashes the program if less than num - 1 characters are present in the current line
Reported by: | Cacodemon345 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta4 |
Component: | System/libroot.so | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
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.
Attachments (2)
Change History (5)
by , 3 years ago
comment:1 by , 3 years ago
Component: | - General → System/libroot.so |
---|---|
Priority: | critical → normal |
comment:3 by , 3 years ago
Milestone: | Unscheduled → R1/beta4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Should be fixed in hrev55930
Note:
See TracTickets
for help on using tickets.
Program file demostrating the behaviour