mirror of
https://github.com/arendst/Tasmota.git
synced 2026-07-27 20:05:46 +00:00
Fix RTSP strncpy buffer overflow
This commit is contained in:
@@ -63,7 +63,7 @@ bool CRtspSession::ParseRtspRequest(char const * aRequest, unsigned aRequestSize
|
||||
{
|
||||
Length = 128;
|
||||
}
|
||||
strncpy(CP,ClientPortPtr, Length);
|
||||
strlcpy(CP,ClientPortPtr, Length);
|
||||
pCP = strstr(CP,"=");
|
||||
if (pCP != nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user