diff options
| author | unknowntrojan <14975032+unknowntrojan@users.noreply.github.com> | 2023-09-19 08:28:03 +0200 |
|---|---|---|
| committer | unknowntrojan <14975032+unknowntrojan@users.noreply.github.com> | 2023-09-19 08:28:03 +0200 |
| commit | e605cc25877c3b38b4a314b897b0d98dd7c1b5d6 (patch) | |
| tree | 13454eb244ad19e455cbf7f9788c87f2624c59c0 /src | |
| parent | 4a1f71a5fe140ddc389a553ab24637d2472116ac (diff) | |
fix crash related to segment edge case
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -519,7 +519,7 @@ fn create_pattern_internal( Err(SignatureError::OutOfBounds)? } - current_buffer.copy_from_slice( + current_buffer[..instr_len as _].copy_from_slice( &data .iter() .find(|segment| segment.0 == start_segment.address_range().start).ok_or(SignatureError::InvalidSegment)? @@ -823,7 +823,7 @@ pub extern "C" fn CorePluginInit() -> bool { ); // #[cfg(debug_assertions)] - let _ = std::fs::write("C:\\log.txt", &string); + let _ = std::fs::write("E:\\log.txt", &string); log::info!("{}", &string); })); |
