Piotr Caban : winedump: Skip data blocks when dumping regf files.
Module: wine Branch: master Commit: bed6f9dfb3aeb9e2833a91df1374d7d582095452 URL: https://gitlab.winehq.org/wine/wine/-/commit/bed6f9dfb3aeb9e2833a91df1374d7d... Author: Piotr Caban <piotr(a)codeweavers.com> Date: Tue Aug 1 17:36:16 2023 +0200 winedump: Skip data blocks when dumping regf files. --- tools/winedump/reg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/winedump/reg.c b/tools/winedump/reg.c index 2afde27e2d7..cce45fdb27a 100644 --- a/tools/winedump/reg.c +++ b/tools/winedump/reg.c @@ -206,6 +206,11 @@ static BOOL dump_value(unsigned int hive_off, unsigned int off) printf("unsupported value flags: %x\n", val->flags); return FALSE; } + if (!(val->data_size & 0x80000000) && val->data_size > 4 * BLOCK_SIZE) + { + printf("Warning: data blocks not supported\n"); + return TRUE; + } if (val->name_size) {
participants (1)
-
Alexandre Julliard