You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The first argument is the syscall id, so skip over it.
125
-
if args.len() < 4{
125
+
let[_, ptr,len, flags, ..] = args else{
126
126
throw_ub_format!(
127
127
"incorrect number of arguments for `getrandom` syscall: got {}, expected at least 4",
128
128
args.len()
129
129
);
130
-
}
130
+
};
131
131
132
-
let ptr = this.read_pointer(&args[1])?;
133
-
let len = this.read_target_usize(&args[2])?;
132
+
let ptr = this.read_pointer(ptr)?;
133
+
let len = this.read_target_usize(len)?;
134
134
// The only supported flags are GRND_RANDOM and GRND_NONBLOCK,
135
135
// neither of which have any effect on our current PRNG.
136
136
// See <https://github.com/rust-lang/rust/pull/79196> for a discussion of argument sizes.
137
-
let _flags = this.read_scalar(&args[3])?.to_i32()?;
0 commit comments