summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2014-11-28 02:35:05 +0000
committerChristos Zoulas <christos@zoulas.com>2014-11-28 02:35:05 +0000
commit0056ec32255de1de973574b0300161a1568767d6 (patch)
tree2d432103f8fcf84d433a268221eb05d0e60b2bb6 /doc
parent6ce24f35cd4a43c4bdd249e8e0c4952c1f8eac67 (diff)
downloadfile-git-0056ec32255de1de973574b0300161a1568767d6.tar.gz
add a limit to the number of times a name/use entries can be used.
Diffstat (limited to 'doc')
-rw-r--r--doc/file.man5
-rw-r--r--doc/libmagic.man7
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/file.man b/doc/file.man
index f9dd2e18..455226c6 100644
--- a/doc/file.man
+++ b/doc/file.man
@@ -1,4 +1,4 @@
-.\" $File: file.man,v 1.107 2014/11/27 16:15:06 christos Exp $
+.\" $File: file.man,v 1.108 2014/11/27 23:42:58 christos Exp $
.Dd November 27, 2014
.Dt FILE __CSECTION__
.Os
@@ -306,10 +306,11 @@ attempt to preserve the access time of files analyzed, to pretend that
never read them.
.It Fl P , Fl Fl parameter Ar name=value
Set various parameter limits.
-.Bl -column "indir" "Default" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -offset indent
+.Bl -column "namenum" "Default" "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -offset indent
.It Sy "Name" Ta Sy "Default" Ta Sy "Explanation"
.It Li indir Ta 15 Ta recursion limit for indirect magic
.It Li name Ta 40 Ta recursion limit for name/use magic
+.It Li namenum Ta 30 Ta use count limit for name/use magic
.It Li phnum Ta 128 Ta max ELF program sections processed
.It Li shnum Ta 32768 Ta max ELF sections processed
.El
diff --git a/doc/libmagic.man b/doc/libmagic.man
index 1cf07109..a5ec6c2d 100644
--- a/doc/libmagic.man
+++ b/doc/libmagic.man
@@ -1,4 +1,4 @@
-.\" $File: libmagic.man,v 1.30 2014/11/27 16:15:06 christos Exp $
+.\" $File: libmagic.man,v 1.31 2014/11/27 23:42:58 christos Exp $
.\"
.\" Copyright (c) Christos Zoulas 2003.
.\" All Rights Reserved.
@@ -284,6 +284,7 @@ library.
.It Sy "Parameter" Ta Sy "Type" Ta Sy "Default"
.It Li MAGIC_PARAM_INDIR_RECURSION Ta size_t Ta 15
.It Li MAGIC_PARAM_NAME_RECURSION Ta size_t Ta 40
+.It Li MAGIC_PARAM_NAME_MAX Ta size_t Ta 30
.It Li MAGIC_PARAM_PHNUM_MAX Ta size_t Ta 128
.It Li MAGIC_PARAM_SHNUM_MAX Ta size_t Ta 32768
.El
@@ -299,6 +300,10 @@ parameter controls how many levels of recursion will be followed for
for name/use calls.
.Pp
The
+.Dv MAGIC_PARAM_NAME_MAX
+parameter controls the maximum number of calls for name/use.
+.Pp
+The
.Dv MAGIC_PARAM_PHNUM_MAX
parameter controls how many elf program sections will be processed.
.Pp