Skip to content

Add context to yara.Error exception #104

Open

Description

@jipegit

It would be very useful to add context to yara.Error Exception, especially the rule name causing internal errors (TOO_MANY_MATCHES or else).

Activity

  1. wxsBSD commented on Mar 6, 2019

    @wxsBSD
    Contributor

    I have a patch almost ready to do this but I got pulled into some stuff for $job so give me a little more time. :)

    I'm switching yara-python over to using the (relatively new) scanner API. It's mostly done, just have to fix up support for external variables.

  2. wxsBSD commented on Mar 8, 2019

    @wxsBSD
    Contributor

    @jipegit Would you be willing to try out the scanner_api branch on my fork? I'm not super happy with the changes in it, but it seems to work well for me (and passes tests). I'll have to come up with a better way to handle errors so it isn't so cumbersome, but I'd appreciate any testing you can do on it.

  3. jipegit commented on Mar 11, 2019

    @jipegit
    Author

    Did some testing and it looks ok to me.

    Thank you!

  4. wxsBSD commented on Mar 11, 2019

    @wxsBSD
    Contributor

    I haven’t actually submitted this yet. Would you please reopen and I’ll see if I can clean it up and get it submitted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions