`hdr_entries` and `hdr_entsz` are both uint32_t as defined in UEFI spec. Current spec does not have upper limit of the number of partition entries and the size of partition entry, it is potential that malicious or corrupted GPT header read from untrusted source contains large size of entry number or size.
PR: [[https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266548 |266548]]