Skip to content

Commit

Permalink
Refactor _yr_atoms_extract_from_re_node.
Browse files Browse the repository at this point in the history
This function was refactored from and converted from recursive to iterative, using a stack.
  • Loading branch information
plusvic committed Aug 10, 2018
1 parent 8c11db3 commit cd3aab6
Show file tree
Hide file tree
Showing 8 changed files with 549 additions and 199 deletions.
5 changes: 4 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ test_bitmask_SOURCES = tests/test-bitmask.c
test_bitmask_LDADD = libyara/.libs/libyara.a
test_math_SOURCES = tests/test-math.c tests/util.c
test_math_LDADD = libyara/.libs/libyara.a
test_stack_SOURCES = tests/test-stack.c
test_stack_LDADD = libyara/.libs/libyara.a

TESTS = $(check_PROGRAMS)
TESTS_ENVIRONMENT = TOP_SRCDIR=$(top_srcdir)
Expand All @@ -56,7 +58,8 @@ check_PROGRAMS = test-alignment \
test-elf \
test-version \
test-bitmask \
test-math
test-math \
test-stack

if POSIX
# The -fsanitize=address option makes test-exception fail. Include the test
Expand Down
2 changes: 2 additions & 0 deletions libyara/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ yarainclude_HEADERS = \
include/yara/scan.h \
include/yara/scanner.h \
include/yara/sizedstr.h \
include/yara/stack.h \
include/yara/stopwatch.h \
include/yara/stream.h \
include/yara/strutils.h \
Expand Down Expand Up @@ -152,6 +153,7 @@ libyara_la_SOURCES = \
scan.c \
scanner.c \
sizedstr.c \
stack.c \
stopwatch.c \
strutils.c \
stream.c \
Expand Down
Loading

0 comments on commit cd3aab6

Please sign in to comment.