From 19dc9ebe9f3575b66f317fb7419be349dea2e844 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Wed, 9 Feb 2022 14:09:06 -0700 Subject: [PATCH] Fix checking the FS access control content owner info size --- src/LibHac/FsSrv/Impl/AccessControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LibHac/FsSrv/Impl/AccessControl.cs b/src/LibHac/FsSrv/Impl/AccessControl.cs index ae037ef7..8c07bc4d 100644 --- a/src/LibHac/FsSrv/Impl/AccessControl.cs +++ b/src/LibHac/FsSrv/Impl/AccessControl.cs @@ -98,7 +98,7 @@ public class AccessControl accessControlData.Slice(data.ContentOwnerInfoOffset + sizeof(int), infoCount * sizeof(ulong))); // Verify the size in the header matches the actual size of the info - Abort.DoAbortUnless(data.ContentOwnerInfoSize == infoCount * sizeof(long)); + Abort.DoAbortUnless(data.ContentOwnerInfoSize == sizeof(int) + infoCount * sizeof(long)); foreach (ulong id in ids) {