Skip to content

null pointer dereference #26655

@QiAnXinCodeSafe

Description

@QiAnXinCodeSafe

Hi all,
This is Qianxin CodeSafe Team, we found a suspicious issue,
The stream pointer "f" may be empty at

FILE *f = fopen(filename.c_str(), "rb");

Therefore,this results in a null point dereference at
fseek(f, 0, SEEK_END);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions