!25 【轻量级 PR】:空指针漏洞修复

Merge pull request !25 from subcakewei/N/A
This commit is contained in:
openharmony_ci
2025-06-06 04:57:26 +00:00
committed by Gitee
+1 -1
View File
@@ -127,7 +127,7 @@ double RtspParse::ParseDoubleSafe(const std::string &str)
}
char *nextPtr = nullptr;
double result = strtod(str.c_str(), nullptr);
double result = strtod(str.c_str(), nextPtr);
if (errno == ERANGE) {
CLOGE("Parse double out of range");
return INVALID_VALUE;