mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 05:40:05 +00:00
Avoid potential undefined behavior in WMO header parsing, don't reuse moved string
This commit is contained in:
parent
ecf5b1f5f0
commit
b96455190f
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ bool WmoHeader::Parse(std::istream& is)
|
||||||
|
|
||||||
while (wmoTokens >> token)
|
while (wmoTokens >> token)
|
||||||
{
|
{
|
||||||
wmoTokenList.push_back(std::move(token));
|
wmoTokenList.push_back(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wmoTokenList.size() < 3 || wmoTokenList.size() > 4)
|
if (wmoTokenList.size() < 3 || wmoTokenList.size() > 4)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue