mirror of
https://github.com/jakcron/nstool
synced 2024-11-26 07:29:29 +00:00
[nx] Safer FacBinary size calculation in FacHeader.
This commit is contained in:
parent
64035225d8
commit
5bd5178a7d
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ void FacHeader::importBinary(const u8 * bytes, size_t len)
|
|||
|
||||
u64 FacHeader::getFacSize() const
|
||||
{
|
||||
return getSaveDataOwnerIdOffset() + getSaveDataOwnerIdSize();
|
||||
return MAX(getSaveDataOwnerIdOffset() + getSaveDataOwnerIdSize(), getContentOwnerIdOffset() + getContentOwnerIdSize());
|
||||
}
|
||||
|
||||
u64 FacHeader::getFsaRights() const
|
||||
|
|
Loading…
Reference in a new issue