libio: impossible to read file without knowing its size #40

Open
opened 2024-03-10 20:20:41 +01:00 by Sweetbread · 0 comments
Owner

When using libio to read a file, and the requested number of bytes is larger then the exact number of bytes in file, last sector of the file will not be read.

Steps to reproduce:
Read a file with libio, request more bytes then file is large.

Additional info:
The problem can be fixed in libio, or the way sysfn 70 works when reading files.
I am not sure wich way is the proper one.


hidnplayr

When using libio to read a file, and the requested number of bytes is larger then the exact number of bytes in file, last sector of the file will not be read. **Steps to reproduce**: Read a file with libio, request more bytes then file is large. **Additional info**: The problem can be fixed in libio, or the way sysfn 70 works when reading files. I am not sure wich way is the proper one. --- *hidnplayr*
Sweetbread added the
Kind
Bug
Priority
Medium
labels 2024-03-10 20:20:41 +01:00
Sweetbread added the
Category/Libraries
label 2024-03-10 21:51:16 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#40
No description provided.