-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaralyze Fails with "Internal Error: 46" #15
Comments
unfortunately that is actually an error I've seen before (see my note in CHANGELOG.md) and I don't know what can be done about it because it's a yara internal error. you can see where it is raised in the yara source code and you might be able to trace back something useful from there (the value that trips the error is here). you can also see that there was a change in yara 3.11 that supposed to limit these errors but IIRC that's around when i began seeing them. there are two command line options that are passed through to the yara engine. when i was confronted with this issue i did a (very little) bit of fiddling in the hopes that might help but gave up quickly. they are some questions though:
re: 2 it might be possible to incrementally delete the yara rules that come packaged with pdfalyzer from your local installation in an attempt to isolate which rule is causing the error (or whether YARA just always fails on that file regardless of rule). if you don't know where to find the packaged YARA rules in your local installation of the pdfalyzer try running edit: fixed link to |
one other thing i would say is that if you do manage to isolate a yara rule + file combination that trips the error it might be worth filing a bug in the official yara repo |
(and it's definitely worth telling me what the rule is so i can at least temporarily remove it from the pdfalyzer) |
I just released version Theoretically this should make it much easier to debug your issue because you can select a limited set of the preconfigured rules (in this directory in the repo and copy them out to your own custom file (which you then pass to the If we're lucky there's just some bad rule in the pre-configured set that is causing this issue on macOS. |
I am getting this error and cannot use pdfalyzer at all |
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ |
this is the traceback |
did you try using this approach to isolate the problem? |
I'm trying to analyze a potentially malicious PDF file and consistently get the error
Internal Error: 46
. According to yara's error.h (printed alongside the error), error 46 corresponds toERROR_TOO_MANY_RE_FIBERS
. All other modules are working fine.Pdfalyzer was installed with pipx (
pipx install pdfalyzer
).The result of
pipx runpip pdfalyzer freeze
is:Please let me know if there's any other debugging info I can provide (aside from the PDF as I don't want to upload anything potentially malicious).
The text was updated successfully, but these errors were encountered: