OSS-Fuzz fuzz build fails in cgi_test.go and frankenphp.go
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, go
- Área
- build-system, testing
Línea de trabajo
Start with cgi_test.go and frankenphp.go, then reproduce the failure using the OSS-Fuzz build_image and build_fuzzers commands in the issue. Remove the benchmark function from cgi_test.go and add the missing os import to frankenphp.go; confirm the fuzz targets compile with the fuzzing build and check_build.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
The FrankenPHP OSS-Fuzz fuzz build fails while compiling the Go fuzz targets. The failure occurs in the fuzzing build, before the fuzzers can be produced. The reported errors include missing references to testing.B in the generated cgi_test.go_fuzz.go file and to os in frankenphp.go. The affected code contains a benchmark function in cgi_test.go:
func BenchmarkSplitRawHeader(b *testing.B) {
...
}
This benchmark is not required by the fuzz targets but is included in the fuzzing build transformation. The fuzz build does not provide the benchmark testing context required by this function.
The failure also indicates that frankenphp.go uses the os package without the corresponding import.
The issue can be reproduced with the OSS-Fuzz build command:
python infra/helper.py build_image frankenphp
python infra/helper.py build_fuzzers \
--sanitizer address \
--engine libfuzzer \
--architecture x86_64 \
frankenphp
Expected behavior: the FrankenPHP fuzz targets should compile successfully.
The fix removes the benchmark function from cgi_test.go and adds the missing os import to frankenphp.go. The patch was successfully verified with the OSS-Fuzz fuzzing build and check_build.
Build Type
Docker (Debian Trixie)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
phpinfo() output
Not applicable. The failure occurs during the OSS-Fuzz fuzz-target build before a FrankenPHP runtime instance is started, so no phpinfo() output is available.
Relevant log output
Relevant log output
The fuzz build reported missing references to testing.B in cgi_test.go_fuzz.go and os in frankenphp.go. The build then failed during fuzz-target compilation.
- Lenguaje dominante
- Go
- Estrellas
- 11.5k
- Forks
- 510
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 71
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/frankenphp
-
Considerer documenting / disabling MPTCP by default due to CVE-2026-98432Posiblemente ocupada @dajiaohuang la tomó hace 2 días. Abiertoenhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
php/frankenphp#2806 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
php/frankenphp#2671 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Include frankenphp version in logsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
php/frankenphp#2483 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
suggestion about compile.mdQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoenhancement
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
php/frankenphp#601 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Detect if `trusted_proxies` and `client_ip_headers` are on, and do other header manupulationAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
php/frankenphp#2800 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de php/frankenphp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
agent-butler-finding chore
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
jordansmall/spindrift#6695 ·
Los mantenedores suelen responder en 1 día
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
kagent-dev/kagent#3571 ·
Los mantenedores suelen responder en 1 día
-
book-layout.spec fails when the similar-books rail holds other projects' booksPosiblemente ocupada @praetorianer777 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
praetorianer777/GoTome#373 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100