Skip to content

[Bug] libmagic in v1.39.0.WIP(nightly) is broken? #2732

@yyjdelete

Description

@yyjdelete

Operating System

Windows

What's the issue you encountered?

auto pattern not works, and libmagic report invalid types in nightly builds, v1.38.1 works well.

How can the issue be reproduced?

  1. Open any mp3 with ID3 tags(for example, the one in libmagic, https://github.com/file/file/raw/refs/heads/master/tests/JW07022A.mp3.testfile)
  • v1.38.1 suggest patten id3, and data info->magic info show mime_type=audio/mpeg, desc=
Audio file with ID3 version 2.3.0, 
contains:
- MPEG ADTS, layer III, v2,  
24 kbps, 16 kHz, Monaural
-
  • v1.39 not suggest any patten, and data info->magic info show mime_type=application/octet-stream, desc=
Audio file with ID3 version 2.73.73, extended header
  1. Open any exe(for example, imhex.exe)
  • v1.38.1 suggest patten dos/pe, and data info->magic info show mime_type=application/vnd.microsoft.portable-executableapplication/x-dosexec, desc=
PE32+ executable for MS Windows 6.00 (console),
 x86-64
- , 9 sections
- MS-DOS Binary 
Portable Executable
  • v1.39 not suggest any patten, and data info->magic info show mime_type=application/octet-stream, desc=
MS-DOS Binary
  1. imhex-gui.pdb
  • v1.38.1 data info->magic info show mime_type=application/x-ms-pdb, desc=
MSVC program database ver 7.00, 1024*3331 bytes
  • v1.39 data info->magic info show mime_type=application/octet-stream, desc=
Unknown(data)

ImHex Version

v1.39.0.WIP(c6045c7), x64

ImHex Build Type

  • Nightly or built from sources

Installation type

Portable

Additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions