Skip to content

Bug report #1

@sabermajesty

Description

@sabermajesty

In drivers/mtd/nand/omap2.c:982
if (err_loc[j] < BCH8_ECC_MAX)
dat[byte_pos] ^=
1 << bit_pos;
range of byte_pos is [0,512+13),however range of dat is [0,512).
This discrepancy may lead to an out-of-bounds access when byte_pos exceeds 512, potentially causing undefined behavior or memory corruption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions