mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
19 lines
356 B
Go
19 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
|
|
}
|