diff --git a/test/unittest/dump_catcher/dumpcatcher_interfaces_test.cpp b/test/unittest/dump_catcher/dumpcatcher_interfaces_test.cpp index 61727796c5f8cf637f0119b9db0bee0ecdf61dc4..5f129d1f6b52ec5e640f9e1f4af69905b77a4ac6 100644 --- a/test/unittest/dump_catcher/dumpcatcher_interfaces_test.cpp +++ b/test/unittest/dump_catcher/dumpcatcher_interfaces_test.cpp @@ -1156,7 +1156,7 @@ HWTEST_F(DumpCatcherInterfacesTest, DumpCatcherInterfacesTest043, TestSize.Level } const int checkCnt = 500; // 500 : check processdump start in 500ms const int waitForkPidStartTime = 50; // 50 : 50ms - const int hungUpProcessdumpTime = 2900; // 2900 : 2.9s + const int hungUpProcessdumpTime = 2880; // 2880 : 2.88s int timeStart = static_cast(GetAbsTimeMilliSeconds()); pid_t pidCheck = fork(); if (pidCheck < 0) { diff --git a/tools/crasher_cpp/dfx_crasher.cpp b/tools/crasher_cpp/dfx_crasher.cpp index f609f16d979de303604bef7556b369f57cfa52cd..6a4a1e9500cfa977de34056f47ea45d712ee624c 100644 --- a/tools/crasher_cpp/dfx_crasher.cpp +++ b/tools/crasher_cpp/dfx_crasher.cpp @@ -334,11 +334,9 @@ NOINLINE int DfxCrasher::MaxMethodNameTest12345678901234567890123456789012345678 return 0; } -static void *DoStackOverflow(void * inputArg) +static void *DoStackOverflow(void * inputArg) __attribute__((optnone)) { int b[10] = {1}; - int *c = nullptr; - (void)memcpy_s(c, sizeof(int), b, sizeof(int)); if (b[0] == 0) { return static_cast(b + 9); // 9: last element of array }