OSS-Fuzz fuzz build fails in cgi_test.go and frankenphp.go
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- docker, go
- Domínio
- build-system, testing
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Go
- Estrelas
- 11.5k
- Forks
- 510
- Merge médio
- 1d 7h
- PRs com merge (30d)
- 71
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de php/frankenphp
-
Considerer documenting / disabling MPTCP by default due to CVE-2026-98432Talvez já em andamento @dajiaohuang assumiu há 2 dias. Abertaenhancement
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
php/frankenphp#2806 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
php/frankenphp#2671 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Include frankenphp version in logsTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertaenhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
php/frankenphp#2483 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
suggestion about compile.mdTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertaenhancement
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 68/100
php/frankenphp#601 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
php/frankenphp#2800 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de php/frankenphp
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
agent-butler-finding chore
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
jordansmall/spindrift#6695 ·
Mantenedores costumam responder em até 1 dia
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 84/100
kagent-dev/kagent#3571 ·
Mantenedores costumam responder em até 1 dia
-
book-layout.spec fails when the similar-books rail holds other projects' booksTalvez já em andamento @praetorianer777 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
praetorianer777/GoTome#373 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100