Skip to content

Commit

Permalink
Bump arena file version.
Browse files Browse the repository at this point in the history
This version includes changes in the layout of compiled files that make them incompatible with compiled rules generated by previous versions.
  • Loading branch information
plusvic committed Sep 11, 2023
1 parent d875f71 commit e7eaeb5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions libyara/include/yara/arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#define EOL ((size_t) -1)

#define YR_ARENA_FILE_VERSION 20
#define YR_ARENA_FILE_VERSION 21

#define YR_ARENA_NULL_REF \
(YR_ARENA_REF) { UINT32_MAX, UINT32_MAX }
#define YR_ARENA_NULL_REF \
(YR_ARENA_REF) \
{ \
UINT32_MAX, UINT32_MAX \
}

#define YR_ARENA_IS_NULL_REF(ref) \
(memcmp(&(ref), &YR_ARENA_NULL_REF, sizeof(YR_ARENA_NULL_REF)) == 0)
Expand Down

0 comments on commit e7eaeb5

Please sign in to comment.