https://bugs.winehq.org/show_bug.cgi?id=49372
Bug ID: 49372 Summary: winedump crashes for sltg typelib files Product: Wine Version: 5.10 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: infyquest@gmail.com Distribution: ---
Created attachment 67425 --> https://bugs.winehq.org/attachment.cgi?id=67425 tlb file
When calling trying to dump the sltg typelib files, winedump crashes with assert error and it show incorrect pad9 output.
The command line output is below: $ winedump hello.tlb Contents of hello.tlb: 2519 bytes
Header { magic = 47544c53h # file blocks = 5 res06 = 000ch size of index = 002bh first block = 1 guid = {000204ff-0000-0000-c000-000000000046} res1c = 00000034h res20 = ffff0000h } Block entry 0 { len = 0000012bh index string = 21h "6b09b0648" next = 0002h } Block entry 1 { len = 00000103h index string = 17h "7b09b0648" next = 0003h } Block entry 2 { len = 0000012fh index string = dh "8b09b0648" next = 0004h } Block entry 3 { len = 000005cbh index string = 9h "dir" next = 0000h } index: "\1CompObj" "dir" "8b09b0648" "7b09b0648" "6b09b0648"
pad9: 0000006f: 00 00 00 00 18 88 50 34-54 .....�P4T
winedump: ../../../wine/tools/winedump/tlb.c:1984: sltg_dump: Assertion `hlpstr_len == len + 6' failed. Aborted (core dumped)
Attaching the affected sltg typelib file.