Skip to content

Undefined behavior in dos_rw_record_fcb #77

@johnsonjh

Description

@johnsonjh

From Cppcheck v2.15.0:

src/dos.c:388:53: error: Read and write operations without a call to a positioning function (fseek, fsetpos or rewind) or
 fflush in between result in undefined behaviour. [IOWithoutPositioning]
    unsigned n = write ? fwrite(buf, 1, rsize, f) : fread(buf, 1, rsize, f);
                                                    ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions