From e338305c9ecb33a3629c0d98b429c6e666684003 Mon Sep 17 00:00:00 2001 From: qyt <486179@qq.com> Date: Fri, 8 May 2026 09:51:27 +0000 Subject: [PATCH] Potential fix for code scanning alert no. 69 Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/XEngine_Source/StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp b/XEngine_Source/StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp index 694f242..a31d4d5 100644 --- a/XEngine_Source/StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp +++ b/XEngine_Source/StorageModule_BTorrent/BTorrent_Parse/BTorrent_Parse.cpp @@ -1,5 +1,6 @@ #include "pch.h" #include "BTorrent_Parse.h" +#include /******************************************************************** // Created: 2023/02/02 16:26:41 // File Name: D:\XEngine\XEngine_SourceCode\XEngine_NetHelp\NetHelp_BTorrent\BTorrent_Parse\BTorrent_Parse.cpp @@ -44,7 +45,7 @@ XHANDLE CBTorrent_Parse::BTorrent_Parse_Init(LPCXSTR lpszAddr) return NULL; } //申请空间 - BTORRENT_PARSEINFO* pSt_BTParse = new BTORRENT_PARSEINFO; + BTORRENT_PARSEINFO* pSt_BTParse = new (std::nothrow) BTORRENT_PARSEINFO; if (NULL == pSt_BTParse) { BTDload_IsErrorOccur = true;