test(runner): verify sandbox isolation with a hostile program suite
This commit is contained in:
1 parent
afee564bf4
commit
e858280d91
38 files changed
+1359
-168
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
// Unbounded allocation of touched memory: the cgroup memory limit must stop it.
|
||||
package main
|
||||
|
||||
func main() {
|
||||
var chunks [][]byte
|
||||
for {
|
||||
chunk := make([]byte, 1<<20)
|
||||
for index := range chunk {
|
||||
chunk[index] = 1
|
||||
}
|
||||
chunks = append(chunks, chunk)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user