OSS-Fuzz fuzz build fails in cgi_test.go and frankenphp.go
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 1/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- docker, go
- Domaine
- build-system, testing
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Go
- Étoiles
- 11.5k
- Forks
- 510
- Merge moyen
- 1 j 7 h
- PR mergées (30 j)
- 71
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de php/frankenphp
-
Considerer documenting / disabling MPTCP by default due to CVE-2026-98432Peut-être pris @dajiaohuang l’a pris il y a 2 jours. Ouverteenhancement
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
php/frankenphp#2806 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
php/frankenphp#2671 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Include frankenphp version in logsPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
php/frankenphp#2483 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
suggestion about compile.mdPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverteenhancement
Difficulté 1/5 1-3 heures Accessibilité débutants 68/100
php/frankenphp#601 · 5 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Detect if `trusted_proxies` and `client_ip_headers` are on, and do other header manupulationOuverteenhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
php/frankenphp#2800 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de php/frankenphp
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
agent-butler-finding chore
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
jordansmall/spindrift#6695 ·
Les mainteneurs répondent en général sous 1 jour
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
kagent-dev/kagent#3571 ·
Les mainteneurs répondent en général sous 1 jour
-
book-layout.spec fails when the similar-books rail holds other projects' booksPeut-être pris @praetorianer777 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
praetorianer777/GoTome#373 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100