bytecode: PaX and selfcheck.

Detect PaX and fallback to intepreter if needed (bb #2092).
Recent PaX versions deny the RWX mapping, but older versions silently change it
to RW, which causes the program to die as soon as it tries to execute JITed
code.

Add selfcheck on startup (bb #2092).
This will run a very simple bytecode on startup in both JIT and interpreter
mode. The bytecode only calls 1 libclamav API and returns.
This commit is contained in:
Török Edvin 2010-07-22 22:32:21 +03:00
parent 6e2b40687f
commit a5a19f4518
5 changed files with 215 additions and 9 deletions