Skip to content

Syscall arguments are neveger negative  #7

Description

@randomstuff

The arguments are defined as unsigned long:

typedef struct open_arg_s {
  unsigned long ret;
  unsigned long ptr_filename;
  unsigned long flags;
  unsigned long mode;
} open_arg_s;

However the code has a lot of tests for negativeness:

if (arg->ret >= 0) {
  // This is always executed
}

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions