Skip to content

fat16_read_internal may read out of bounds #1

@RyanStan

Description

@RyanStan
/* 
 * TODO: If offset is partially into the cluster already,
 * then n does not necessarily have to be larger than cluster_size_bytes for the read to overrun into the next cluster.
 * This code incorrectly assumes that we're starting a read from the beginning of a cluster.
 */
        int bytes_to_read = n > cluster_size_bytes ? cluster_size_bytes : n;

In fat16_read_internal in fat16.c.

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