On Tue, 4 Apr 2023 at 18:42, Marvin Häuser <mhaeu...@posteo.de> wrote:
>
>
> > On 4. Apr 2023, at 18:29, Ard Biesheuvel <a...@kernel.org> wrote:
> > On Tue, 4 Apr 2023 at 18:19, Marvin Häuser <mhaeu...@posteo.de> wrote:
> >>
> >> FWIW, Reviewed-by: Marvin Häuser <mhaeu...@posteo.de>
> >>
> >> An off-topic remark, but I find it ominous that when adding a hack like 
> >> the DllCharacteristicsEx debug entry, the opportunity is not used to turn 
> >> it into something that can be expanded in the future without introducing 
> >> yet another hack like this (I know 31 more Bits look plenty now, but if an 
> >> address, offset, or size will be needed… ouch).
> >
> > It *can* be expanded in the future. The debug directory entry includes
> > a size field, and once flags get defined that are not present, they
> > just default to unset.
>
> Ugh, I should have known this… sorry for my terrible remark! :)
>
> Though doesn’t that mean the size field should ideally be checked in 3/4 (not 
> regarding the extensibility point, but well-formedness of the data)?
>

Ideally, yes, we shouldn't read more bytes than the debug entry
describes, and zero out the rest.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#102508): https://edk2.groups.io/g/devel/message/102508
Mute This Topic: https://groups.io/mt/98062730/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to