[Forensics-changes] [yara] 91/368: Document -k/--stack-size option and change wording
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:30:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.5.0
in repository yara.
commit ad4beeab5cca49ff49d257a8eb9c32853c3ce806
Author: Coleman Kane <ckane at colemankane.org>
Date: Fri Oct 9 20:19:48 2015 -0400
Document -k/--stack-size option and change wording
Stack size is specified in terms of STACK_ITEM slots, not bytes.
---
docs/commandline.rst | 5 +++++
yara.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/docs/commandline.rst b/docs/commandline.rst
index 6b54a1c..fe51376 100644
--- a/docs/commandline.rst
+++ b/docs/commandline.rst
@@ -66,6 +66,11 @@ Available options are:
Abort scanning after a number of seconds has elapsed.
+.. option:: -k <slots> --stacksize=<slots>
+
+ Allocate a stack size of "slots" number of slots. Default: 16384. This
+ will allow you to use larger rules, albeit with more memory overhead.
+
.. option:: -d <identifier>=<value>
Define external variable.
diff --git a/yara.c b/yara.c
index 855f65c..c628272 100644
--- a/yara.c
+++ b/yara.c
@@ -162,7 +162,7 @@ args_option_t options[] =
"abort scanning after the given number of SECONDS", "SECONDS"),
OPT_INTEGER('k', "stack-size", &stacksize,
- "Set stack size to allocate in exec() to BYTES", "BYTES"),
+ "Set stack size to allocate in exec() to SLOTS (default=16384)", "SLOTS"),
OPT_BOOLEAN('r', "recursive", &recursive_search,
"recursively search directories"),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list