Skip to content

Collapse vulnerability #14

Description

@pidan988166

FORTIFY: memcpy: prevented 111-byte write into 100-byte buffer。问题出现在 pmparser_helper_extract 函数中:我们使用的是 sizeof(char) 计算大小,但 dest_ptr 缓冲区大小并未作为参数传递。

在 pmparser_parse_line 函数中,我们定义 token 数组为 PROCMAPS_LINE_TOKEN_MAX_LEN (100),但 pmparser_helper_extract 函数内部不知道这个缓冲区大小。我们需要修改函数,将缓冲区大小作为参数传递。

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions