| Name |
Last commit
|
Last update |
|---|---|---|
| appveyor | ||
| yara @ 1595e53e | ||
| .gitmodules | ||
| .travis.yml | ||
| LICENSE | ||
| MANIFEST.in | ||
| README.rst | ||
| appveyor.yml | ||
| setup.cfg | ||
| setup.py | ||
| tests.py | ||
| yara-python.c |
* Allow a Py_buffer as data for Rules_match This makes rules matching compatible with data objects `PyArg_ParseTuple` does not consider read-only (even though they might actually be), such a memoryviews. The main change is replacing the `s#` formatter with `s*` and replacing the `(pointer, length)` pair with a `Py_buffer` object accordingly. Additional care must be taken to release the `Py_buffer` on every error path. * Rules_match: zero-initialize data PyArg_ParseTupleAndKeywords does not initialize optional fields unless they are passed, which means we need to zero-initialize the data buffer to be sure the later NULL checks always work. This commit also gets rid of the unneeded has_data flag. * Add test for matching on a memoryview
| Name |
Last commit
|
Last update |
|---|---|---|
| appveyor | Loading commit data... | |
| yara @ 1595e53e | ||
| .gitmodules | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| LICENSE | Loading commit data... | |
| MANIFEST.in | Loading commit data... | |
| README.rst | Loading commit data... | |
| appveyor.yml | Loading commit data... | |
| setup.cfg | Loading commit data... | |
| setup.py | Loading commit data... | |
| tests.py | Loading commit data... | |
| yara-python.c | Loading commit data... |