interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / qualification / security673 / pure-child.om

51 lines · 1003 bytes Raw Blame History
1note Actual hostile consumer under execpure. Every path and payload here is synthetic.
2global buf uchar 32
3global packet uchar 64
4text input "public-input"
5text output "public-output"
6text private "build/security673-pure/private.data"
7text judge "build/security673-pure/judge.data"
8text other "/usr/bin/true"
9fn main to int
10if ne read 0 buf 0 len input long len input
11ret 41
12end
13for i ulong len input
14if ne get buf i get input i
15ret 42
16end
17end
18if ne read 3 buf 0 1 neg long 1
19ret 43
20end
21if ne write 0 buf 0 1 neg long 1
22ret 44
23end
24if ne read 1 buf 0 1 neg long 1
25ret 45
26end
27if ne fopen private 0 len private 0 0 neg long 1
28ret 46
29end
30if ne fopen judge 0 len judge 513 384 neg long 1
31ret 47
32end
33if ne socknew 2 1 0 neg long 1
34ret 48
35end
36if ne fork neg long 1
37ret 49
38end
39put packet 0 1
40put packet 2 uchar len other
41for i ulong len other
42put packet add i 4 get other i
43end
44if ne execprog packet 0 add 4 len other neg long 1
45ret 50
46end
47if ne write 1 output 0 len output long len output
48ret 51
49end
50ret 0
51end