Skip to content

Bug report #1

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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