From 06af4c34123f948aced3d4e08548438b7b3ccf93 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 29 Aug 2024 10:06:25 -0700 Subject: [PATCH] Move reply before after_success array, so if we for some reason overflow the latter that would trigger asan and not just trash reply. --- src/rtpp_command_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtpp_command_private.h b/src/rtpp_command_private.h index e5a22d743..b7eab3407 100644 --- a/src/rtpp_command_private.h +++ b/src/rtpp_command_private.h @@ -84,6 +84,6 @@ struct rtpp_command { int no_glock; struct rtpp_session *sp; struct rtpp_log *glog; - struct after_success_h after_success[MAX_SUBC_NUM]; struct rtpc_reply *reply; + struct after_success_h after_success[MAX_SUBC_NUM]; };