mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix: segmentation fault on canonicalize method
This commit is contained in:
parent
f0801fb7c7
commit
027c2f0a31
|
@ -60,8 +60,12 @@ path manifest::canonicalize(const std::vector<xlnt::relationship> &rels) const
|
|||
if (component == ".") continue;
|
||||
|
||||
if (component == "..")
|
||||
{
|
||||
if (absolute_parts.size() > 0)
|
||||
{
|
||||
absolute_parts.pop_back();
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user