mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #1996, Heap off-by-one in utest
This commit is contained in:
parent
c796c0d093
commit
27db60cc23
1 changed files with 1 additions and 1 deletions
|
@ -3139,7 +3139,7 @@ VOID TEST(ProtocolRTMPTest, MergeReadHandler)
|
|||
|
||||
char* _strcpy(const char* src)
|
||||
{
|
||||
return strcpy(new char[strlen(src)], src);
|
||||
return strcpy(new char[strlen(src) + 1], src);
|
||||
}
|
||||
|
||||
VOID TEST(ProtocolRTMPTest, CreateRTMPMessage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue