Fix checking the FS access control content owner info size

This commit is contained in:
Alex Barney 2022-02-09 14:09:06 -07:00
parent 266ece82f2
commit 19dc9ebe9f

View file

@ -98,7 +98,7 @@ public class AccessControl
accessControlData.Slice(data.ContentOwnerInfoOffset + sizeof(int), infoCount * sizeof(ulong))); accessControlData.Slice(data.ContentOwnerInfoOffset + sizeof(int), infoCount * sizeof(ulong)));
// Verify the size in the header matches the actual size of the info // 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) foreach (ulong id in ids)
{ {