Fix 'RtlGenRandom' argument slots
This commit is contained in:
parent
5e07ff6b1f
commit
6b4c5b81da
1 changed files with 2 additions and 2 deletions
|
|
@ -756,8 +756,8 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a + 'mir>: crate::MiriEvalContextExt<'
|
|||
}
|
||||
// The actual name of 'RtlGenRandom'
|
||||
"SystemFunction036" => {
|
||||
let ptr = this.read_scalar(args[1])?.to_ptr()?;
|
||||
let len = this.read_scalar(args[2])?.to_usize(this)?;
|
||||
let ptr = this.read_scalar(args[0])?.to_ptr()?;
|
||||
let len = this.read_scalar(args[1])?.to_usize(this)?;
|
||||
|
||||
let data = gen_random(this, len as usize)?;
|
||||
this.memory_mut().get_mut(ptr.alloc_id)?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue