[Midnightbsd-cvs] [MidnightBSD/mports] b9196f: magus: add YaraSkipLarger config key to skip overs...

Lucas Holt noreply at github.com
Sun Jul 5 02:40:11 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: b9196faf51577fb92776f35bddfe96e69b6ed5e5
      https://github.com/MidnightBSD/mports/commit/b9196faf51577fb92776f35bddfe96e69b6ed5e5
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-07-05 (Sun, 05 Jul 2026)

  Changed paths:
    M Tools/lib/Magus/App/Slave/Worker.pm
    M Tools/magus/config.yaml.example

  Log Message:
  -----------
  magus: add YaraSkipLarger config key to skip oversized files in YARA scan

Run 641 recorded 239 scan-phase internal errors, all from YARA exiting
with code 2 on Go ports. The YARA port-file scan targets include patch
files and scripts; large patch files in Go/LLVM ports can exhaust YARA's
working memory on i386's 32-bit address space, causing a fatal exit
rather than a clean scan result.

Add a YaraSkipLarger config key (bytes). When set, --skip-larger=N is
passed to yara, causing it to skip any target file over that size.
Document it in config.yaml.example with a 2 MB default, which covers
all legitimate port Makefiles, scripts, and patch files while excluding
abnormally large files that trigger the crash.

Verified against yara 4.5.0: --skip-larger is supported.

AI-Assisted-by: Claude Sonnet 4.6 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list