mirror of
https://github.com/iv-org/inv_sig_helper.git
synced 2024-10-07 03:13:24 +00:00
Switch the byteswapping to regular shifting
This commit is contained in:
parent
de4fab1517
commit
cdeddbd07e
@ -60,7 +60,7 @@ impl Decoder for OpcodeDecoder {
|
|||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
let sig_size: u16 = u16::from_be_bytes(src[5..6].try_into().unwrap());
|
let sig_size: u16 = ((src[5] as u16) << 8) | src[6] as u16;
|
||||||
|
|
||||||
if (usize::from(sig_size) + 7) > src.len() {
|
if (usize::from(sig_size) + 7) > src.len() {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
Loading…
Reference in New Issue
Block a user