mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
[nx] Safer FacBinary size calculation in FacHeader.
This commit is contained in:
parent
64035225d8
commit
5bd5178a7d
|
@ -86,7 +86,7 @@ void FacHeader::importBinary(const u8 * bytes, size_t len)
|
||||||
|
|
||||||
u64 FacHeader::getFacSize() const
|
u64 FacHeader::getFacSize() const
|
||||||
{
|
{
|
||||||
return getSaveDataOwnerIdOffset() + getSaveDataOwnerIdSize();
|
return MAX(getSaveDataOwnerIdOffset() + getSaveDataOwnerIdSize(), getContentOwnerIdOffset() + getContentOwnerIdSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 FacHeader::getFsaRights() const
|
u64 FacHeader::getFsaRights() const
|
||||||
|
|
Loading…
Reference in a new issue