mirror of
https://github.com/videolan/vlc.git
synced 2024-11-27 11:57:03 +08:00
demux: hls: strip invalid padding chars from attributes
This commit is contained in:
parent
e10dffc42d
commit
698a857c77
@ -216,7 +216,7 @@ void AttributesTag::parseAttributes(const std::string &field)
|
||||
break;
|
||||
}
|
||||
else /* out of range */
|
||||
return;
|
||||
iss.get();
|
||||
}
|
||||
|
||||
std::string attrname = oss.str();
|
||||
@ -240,6 +240,11 @@ void AttributesTag::parseAttributes(const std::string &field)
|
||||
{
|
||||
b_quoted = !b_quoted;
|
||||
}
|
||||
else if(!b_quoted && (c < '-' || c > 'z')) /* out of range */
|
||||
{
|
||||
iss.get();
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!iss.eof())
|
||||
oss.put((char)iss.get());
|
||||
|
Loading…
Reference in New Issue
Block a user