tests/test-magic.c:24: rule does not match (but should)
bug
**Describe the bug**
`make check` fails with
```
PASS: test-arena
PASS: test-alignment
PASS: test-atoms
PASS: test-api
PASS: test-rules
PASS: test-pe
PASS: test-elf
PASS: test-version
PASS: test-bitmask
PASS: test-math
PASS: test-stack
PASS: test-re-split
PASS: test-async
PASS: test-string
PASS: test-exception
PASS: test-macho
PASS: test-dex
PASS: test-dotnet
FAIL: test-magic
PASS: test-pb
==================================
yara 4.5.5: ./test-suite.log
==================================
# TOTAL: 20
# PASS: 19
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test-magic
================
tests/test-magic.c:24: rule does not match (but should)
FAIL test-magic (exit status: 1)
```
**To Reproduce**
`make check`
**Expected behavior**
PASS
**Please complete the following information:**
- OS: ALT Linux (Sisyphus)
- YARA version: 4.5.5
**Additional context**
This might coincide with `libmagic` (`file`) update from 5.46 to 5.47.
关闭于 2026-04-25 4 条评论