mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 01:49:33 +00:00
More strncat() misuses.
Reported by Sascha Sommer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22207 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
eacf95dc11
commit
acb11de6b9
@ -479,9 +479,9 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
|
||||
{
|
||||
/* ignore unknown attributes, but provide access to them */
|
||||
*longfsdp_buf = '\0';
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN);
|
||||
strncat (longfsdp_buf, ":", MAXLONGFIELDLEN);
|
||||
strncat (longfsdp_buf, fsdp_buf[1], MAXLONGFIELDLEN);
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN-1);
|
||||
strncat (longfsdp_buf, ":", MAXLONGFIELDLEN-strlen(longfsdp_buf)-1);
|
||||
strncat (longfsdp_buf, fsdp_buf[1], MAXLONGFIELDLEN-strlen(longfsdp_buf)-1);
|
||||
if (NULL == dsc->unidentified_attributes)
|
||||
{
|
||||
dsc->unidentified_attributes_count = 0;
|
||||
@ -515,7 +515,7 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
|
||||
{
|
||||
/* ignore unknown attributes, but provide access to them */
|
||||
*longfsdp_buf = '\0';
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN);
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN-1);
|
||||
if (NULL == dsc->unidentified_attributes)
|
||||
{
|
||||
dsc->unidentified_attributes_count = 0;
|
||||
@ -868,7 +868,7 @@ fsdp_parse (const char *text_description, fsdp_description_t * dsc)
|
||||
{
|
||||
/* ignore unknown attributes, but provide access to them */
|
||||
*longfsdp_buf = '\0';
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN);
|
||||
strncat (longfsdp_buf, fsdp_buf[0], MAXLONGFIELDLEN-1);
|
||||
if (NULL == media->unidentified_attributes)
|
||||
{
|
||||
media->unidentified_attributes_count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user