Skip to content

[Bug] 读分区表函数readlba的实现可能会导致buffer溢出 #11259

@riturbo

Description

@riturbo

RT-Thread Version

5.2

Hardware Type/Architectures

ARM64

Develop Toolchain

GCC

Describe the bug

问题描述: components/drivers/block/partitions/efi.c文件的readlba函数中总是以512字节去读取数据,当传入的buffer size没对齐到512时会导致最后一次读取时buffer溢出。从而导致各种问题。

Other additional context

No response

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