Skip to content

Null pointer dereference in sys.h #2

@ghost

Description

You may have a Null pointer dereference issue in a sys.h file on line 55 :)

modules/sys/sys.h

Lines 52 to 57 in b25c0ee

FILE *fstat = fopen("/proc/stat", "r");
if (fstat == NULL) {
perror("FOPEN ERROR ");
fclose(fstat);
return -1;
}

I could create a PR if you want

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