From c6f705db87cc2f7c26b1afc7131aed14993405cb Mon Sep 17 00:00:00 2001 From: renoseven Date: Tue, 29 Jul 2025 15:55:33 +0800 Subject: [PATCH] syscared: fix new process patch active disorder issue Signed-off-by: renoseven --- syscared/src/patch/driver/upatch/target.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syscared/src/patch/driver/upatch/target.rs b/syscared/src/patch/driver/upatch/target.rs index a2a5f81e..be5aabcd 100644 --- a/syscared/src/patch/driver/upatch/target.rs +++ b/syscared/src/patch/driver/upatch/target.rs @@ -17,15 +17,15 @@ use std::{ path::PathBuf, }; -use indexmap::IndexSet; +use indexmap::{IndexMap, IndexSet}; use uuid::Uuid; use crate::patch::entity::UserPatch; #[derive(Debug, Default)] pub struct PatchTarget { - process_map: HashMap>, // pid -> patch list - patch_map: HashMap, // uuid -> patch file + process_map: HashMap>, // pid -> patch list + patch_map: IndexMap, // uuid -> patch file collision_map: HashMap>, // function old addr -> patch collision list } -- Gitee