| 1 |
[ocaml-lintian] |
| 2 |
flags = perl-bug-588017 dangerous |
| 3 |
comment = Dangerous because it executes shell commands in filenames |
| 4 |
apt = dh-ocaml, ocaml-nox |
| 5 |
files = *.cma |
| 6 |
command = ocaml-lintian {files} |
| 7 |
|
| 8 |
[ocaml-shell-injection] |
| 9 |
files = *.ml |
| 10 |
comment = These calls are potentially vulnerable to shell metacharacter injection |
| 11 |
command = grep -nHE 'Unix\.(system|open_process(|_in|_out|_full))' {files} |
| 12 |
|
| 13 |
[ocaml-unsafe-features] |
| 14 |
apt = ocaml-nox |
| 15 |
files = *.cmi *.cmo *.cma *.cmx *.cmxa *.cmxs |
| 16 |
command = ocamlobjinfo {file} | grep -E '^(File |Uses unsafe features: YES)' | perl -nle 'print "$prev\n$_" if /^Uses / and $prev =~ /^File /; $prev=$_' |
| 17 |
|
| 18 |
# TODO: unsafe language features: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702349#24 |
| 19 |
# asked about on #ocaml and here: <[email protected]> |
| 20 |
# TODO: http://mascot.x9c.fr/ |
| 21 |
|
| 22 |
# vim:ft=dosini |