Commit Graph
173 Commits
Author SHA1 Message Date
Victor M. Alvarez 040db952d4 Set version number to 3.4.0 2015-06-18 15:33:39 +02:00
Victor M. Alvarez 406fda8a68 Fix warnings 2015-06-18 14:47:00 +02:00
Victor M. Alvarez 7a4f9f5985 Fix issue #319 2015-06-10 14:08:13 +02:00
Victor M. Alvarez 9802ee6798 More test cases for regular expressions 2015-06-04 10:29:42 +02:00
Victor M. Alvarez 2fe34e0d8f Make "save" and "load" methods more coherent with existing "match" and "compile"
Instead of relying on the argument type to determine if it's a path or a file-like object, use keyword arguments in "save" and "load" in the same way we use it in "match" and "compile".
2015-06-03 10:40:09 +02:00
Victor Manuel Alvarez 85456ae6b4 Homogenize style 2015-05-22 10:44:30 +02:00
Victor Manuel Alvarez 06f9e949ea Fix memory leak
The reference counter for "rules" object wasn't decremented when yara_load or yara_compile failed.
2015-05-22 10:30:27 +02:00
Victor M. Alvarez 4fd4012947 Fix bug while reading from streams in yara-python
The reference counter for the bytes object was being decremented before copying the buffer. The buffer was being freed by the garbage collector before memcpy was called.
2015-05-14 12:12:17 +02:00
Victor M. Alvarez 95c78d7c69 Add missing typecasts 2015-05-05 14:49:14 +02:00
Victor M. Alvarez d11a68270a Fix bug while writing to streams in Python 3.x 2015-05-05 14:43:34 +02:00
Victor M. Alvarez 97c46f31c6 Fix issues in yara-python while compiling in Windows 2015-05-05 12:29:39 +02:00
Victor M. Alvarez f7353d8c21 Get rid of designated initializations as MS Visual C++ don't support it 2015-05-05 11:56:34 +02:00
Victor M. Alvarez d90463455d Handle empty strings correctly (issue #303) 2015-04-29 13:00:07 +02:00
Victor M. Alvarez 348dae651e Perform stream I/O tests without relying on a predefined compiled file
The binary format of compiled files can change, and that would require updating the predefined file.
2015-04-29 12:19:47 +02:00
Victor M. Alvarez 3a4ed03567 Improve profiling
+ Keep track of the time spent by rules timing-out
+ Include profiling information in yara.TimeoutError
2015-03-18 12:25:19 +01:00
Victor M. Alvarez 4203961c77 Fix issue with "save" function not accepting unicode strings in Python 2.x
This fix also affects external variables, now unicode strings can be passed as values for external variables.
2015-02-16 13:14:33 +01:00
Victor Manuel Alvarez 4994a2cdff Fix issue #258 2015-02-13 23:09:35 +01:00
Victor M. Alvarez ef7da2c52a Improve streams
- Implement file functions in top of stream functions
- Add support for stream writing
2015-02-13 12:44:35 +01:00
Hilko Bengen 410c9cb948 python: Add reader for file-like objects 2015-02-10 17:04:40 +01:00
Hilko Bengen 8776e41500 python: Add simple test for yara.load(FILE-LIKE-OBJECT) 2015-02-10 17:04:40 +01:00
Victor M. Alvarez 6468404145 Fix an issue with test cases in Python 3.x 2015-02-10 13:02:36 +01:00
Victor Manuel Alvarez e55f989a7f Implement float external variables 2015-02-10 00:11:31 +01:00
Victor M. Alvarez 59974ef6cd Set version number to 3.3.0 2015-02-09 10:39:03 +01:00
Hilko Bengen 3474bd7162 yara-python/tests.py: Add missing f.close() to avoid warning
With Python 3.4, I got:

    ResourceWarning: unclosed file <_io.TextIOWrapper name=4 mode='wt' encoding='UTF-8'>
2015-02-07 21:25:42 +01:00
Victor M. Alvarez b6bccf3c62 Fix issue #249 2015-02-03 12:36:47 +01:00
Victor M. Alvarez 9198ce67b3 Implement \b and \B anchors in regexps 2015-02-03 10:27:27 +01:00
Victor Manuel Alvarez 925cc8bc4f Make operator precedence compatible with the C language.
According to the operator precedence in C language the expression A ^ B & C is parsed as A ^ (B & C) not as (A ^ B) & C.
2015-01-31 19:39:33 +01:00
Victor Manuel Alvarez 8ebfeeea61 Fix bug in bitwise not (~) operator 2015-01-31 17:09:11 +01:00
Victor Manuel Alvarez 6cd9fad915 Implement unary minus operator 2015-01-31 16:55:34 +01:00
Victor Manuel Alvarez b90e8b5283 Allow to pass custom pointer to compiler callback as suggested in #220 2015-01-29 22:33:18 +01:00
Victor Manuel Alvarez 61be5ca44e Revert wrong attempt to fix issue #240 2015-01-29 21:55:09 +01:00
Victor Manuel Alvarez 7072092b7d Add missing underscore in function name 2015-01-29 21:41:14 +01:00
Hilko Bengen aaefdb28c9 python: Fix crash when Python 3 cannot decode strings from tags or meta as UTF-8
Fall back to creating a Bytes object instead of a String
2015-01-28 23:52:43 +01:00
Hilko Bengen 73ebddb5f5 python: Add explicit library path
Python bindings should not be accidentally linked against an installed
(possibly older) version of libyara.
2015-01-28 23:52:43 +01:00
Victor M. Alvarez 111133d212 Rename double to float
"float" is a more general and easy to recognize way of referring to floating-point numbers, "double" represents an specific floating-point precision.
2015-01-08 15:07:38 +01:00
Victor M. Alvarez 5b117b6a83 Add support for negative numbers 2015-01-05 13:17:18 +01:00
Victor M. Alvarez 9784167509 Add test cases for string comparison operators and floating point arithmetic operations 2014-12-31 11:45:10 +01:00
Victor M. Alvarez 161e324fb6 Fix issue #218 2014-12-24 11:55:13 +01:00
Victor Manuel Alvarez d3a1fff827 Fix issue in Python 2.4 2014-12-01 13:09:36 +01:00
Victor Manuel Alvarez a2927774cf Accept None for argument "externals" 2014-12-01 12:23:40 +01:00
Victor M. Alvarez 5480ab8a19 Add missing library to setupwinXX.py 2014-11-10 15:35:59 +01:00
Victor M. Alvarez ba58fe2a25 Bump to version 3.2.0 2014-11-10 14:43:37 +01:00
Victor M. Alvarez ab2d2dfbf8 Add big-endian versions for intXX and uintXX functions 2014-11-07 13:07:58 +01:00
Victor M. Alvarez 395daece2d Fix false positive in "fullword" matches when string is declared both "ascii" and "wide"
Also improved detection of strings fitting in atoms and removed redundant code for "fullword" handling.
2014-11-04 10:57:42 +01:00
Victor M. Alvarez 557aa9ac48 Add test case for functions receiving strings 2014-10-30 11:56:07 +01:00
Victor M. Alvarez 5ba87be3c1 Add OpenSSL to Windows project 2014-10-29 14:14:53 +01:00
Victor Manuel Alvarez c20bac259f Rename cur_rule to iter_current_rule 2014-09-24 23:45:09 +02:00
Victor Manuel Alvarez 9f7a17838c Fix segfault in yara-python 2014-09-24 23:42:45 +02:00
Victor M. Alvarez 0763b7aee2 Fix issue #181 2014-09-24 18:09:17 +02:00
Victor Manuel Alvarez 55ee00dc63 Implement yr_rules_foreach and use it where appropriate 2014-09-18 20:33:43 +02:00