Re: [PATCH v35 0/6] MR3870: mspatcha: Add support for 32-bit file patching and normalization
22 Sep
2023
22 Sep
'23
4:34 p.m.
On Fri Sep 22 16:09:26 2023 +0000, eric pouech wrote:
it has an exception handler around it, so * either the field is not on a readable page and the exception will be fired, and you'll get a NULL pointer (SAFE) * or the field is on a readable page but with a wrong magic value, and you'll get a NULL pointer (SAFE) * or the field is on a readable page, with the expected magic value, and you'll a non NULL pointer, that you can check if it fits or not in mapped view before reading into it (SAFE) Oh! Okay, I will use `RtlImageNtHeader` and then do the bounds checks afterwards :)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3870#note_46369
896
Age (days ago)
896
Last active (days ago)
0 comments
1 participants
participants (1)
-
Aidan Khoury (@ajkhoury)