From f9f22588e6a51b9faaa0f48c78092623bb71c40c Mon Sep 17 00:00:00 2001 From: kun chen Date: Tue, 9 Sep 2025 15:58:41 +0800 Subject: [PATCH] std::stol crash with invalid argument for 5.1 release Signed-off-by: kun chen --- src/daemon/daemon_forward.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/daemon_forward.cpp b/src/daemon/daemon_forward.cpp index 94e6783f..9026c3bb 100644 --- a/src/daemon/daemon_forward.cpp +++ b/src/daemon/daemon_forward.cpp @@ -44,7 +44,7 @@ bool HdcDaemonForward::SetupJdwpPoint(HCtxForward ctxPoint) { HdcDaemon *daemon = (HdcDaemon *)taskInfo->ownerSessionClass; HdcJdwp *clsJdwp = (HdcJdwp *)daemon->clsJdwp; - uint32_t pid = std::stol(ctxPoint->localArgs[1]); + uint32_t pid = static_cast(atoi(ctxPoint->localArgs[1].c_str())); if (ctxPoint->checkPoint) { uint32_t id = ctxPoint->id; bool ret = clsJdwp->CheckPIDExist(pid); -- Gitee