Skip to content

v3.10.0 - "nocase" setting does not produce a match, possibly due to incorrect case folding of unicode characters #114

@ardtex

Description

@ardtex

Adding "nocase" to a condition does not produce a match when unicode characters(in non-bmp range) are involved. This seems to be a regression from yara-python v3.6.3.

Command to run test -

  1. Install yara-python v3.6.3
  2. Extract attached zip file, cd into the folder
  3. Run - python yara_unicode_test.py sample_data.txt sample_rule.txt
  4. Check output (both rules produce a match)
  5. Install yara-python v3.10.0
  6. Run - python yara_unicode_test.py sample_data.txt sample_rule.txt
  7. Check output (rule with nocase condition does not produce a match)

Test.zip

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