Impose memory usage limit on external filters. Fixes issue #259

This commit is contained in:
Jean-Francois Dockes
2015-07-18 19:30:49 +02:00
parent c8e9795f9e
commit e59bf51445
8 changed files with 90 additions and 13 deletions
+5
View File
@@ -250,6 +250,11 @@ textfilepagekbs = 1000
# Maximum external filter execution time. Default 20mn. This is mainly
# to avoid infinite loops in postscript files (loop.ps)
filtermaxseconds = 1200
# Maximum virtual memory space for filter process (setrlimit(RLIMIT_AS)),
# in megabytes. Note that this includes any mapped libs (there is no
# reliable Linux way to limit the data space only), so we need to be a
# bit generous here. Anything over 2000 will be ignored on 32 bits machines.
filtermaxmbytes = 2000
# Length of abstracts we store while indexing. Longer will make for a
# bigger db