mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
20 lines
356 B
Go
20 lines
356 B
Go
|
|
// Phase 15 — fuzz-style variadic harness, benign.
|
||
|
|
// Validates input length then echoes a fixed string.
|
||
|
|
|
||
|
|
package entry
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
"os/exec"
|
||
|
|
)
|
||
|
|
|
||
|
|
func FuzzHandle(data []byte) error {
|
||
|
|
if len(data) > 1024 {
|
||
|
|
return fmt.Errorf("too long")
|
||
|
|
}
|
||
|
|
cmd := exec.Command("echo", "hello")
|
||
|
|
out, _ := cmd.CombinedOutput()
|
||
|
|
fmt.Print(string(out))
|
||
|
|
return nil
|
||
|
|
}
|