1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #1229, fix the security risk in HDS. 3.0.69

This commit is contained in:
winlin 2019-12-11 11:31:32 +08:00
parent 35e0ec27ed
commit ad70589347
3 changed files with 10 additions and 2 deletions

View file

@ -64,3 +64,9 @@ VOID TEST(CoreMacroseTest, Check)
#endif
}
VOID TEST(CoreLogger, CheckVsnprintf)
{
char buf[1024];
EXPECT_EQ(6, sprintf(buf, "%s", "Hello!"));
}