Skip to content

Commit 766f06c

Browse files
committed
Update base for Update on "Verify pte size at runtime"
Check that the file size is at least the size of what we expect from the extended header. ie. header_offset + program_size + segment_data_size. Differential Revision: [D81938296](https://our.internmc.facebook.com/intern/diff/D81938296/) [ghstack-poisoned]
1 parent c89322d commit 766f06c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/source/pte-file-format.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ Optional extended header:
7272
| [24..31] uint64_t offset (from byte offset zero above) to the start of the
7373
| first segment, or zero if there are no segments.
7474
| [32..39] uint64_t size of the segment data, ie. the size from the segment_base_offset
75-
| to the end of the segments.
75+
| to the end of the segments. Note, the last segment should not have any
76+
| trailing padding.
7677
| [40..?] Any zero-padding necessary to preserve the alignment of the data
7778
| that follows.
7879
End of optional extended header.

0 commit comments

Comments
 (0)