mirror of
https://github.com/openharmony/castengine_cast_plus_stream.git
synced 2026-07-01 09:20:39 -04:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user