Inputs: names starting with '-' become tool options, --static with --invoke runs a tool twice, missing inputs found late
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 50/100
Línea de trabajo
Start with src/Process/Tools/FlawfinderToolImplementation.cpp near line 18 and include/Process/Tools/AnalysisTools.hpp lines 212-213, where input paths are passed to tools without a -- separator, and compare with how the cppcheck and runtime-analyzer paths are built. Then find where --static and --invoke selections are combined, and check the input-resolution step for missing files and --compile-commands. Done means each acceptance item in the issue has a test: a -x.c input is analyzed, cppcheck runs once, and a missing path exits 1 with that path named.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Three problems with how inputs reach the tools, found by the resilience campaign (docs/quality/resilience.md).
1. File names that start with - are read as options (C37)
ctrace --input ./-F.c --invoke flawfinder
The path is normalized to -F.c and passed to flawfinder as an argument, which reads it as an option: *** getopt error: option -. not recognized, exit 3. A repository can name its files freely, and flawfinder and ikos have options that write files. src/Process/Tools/FlawfinderToolImplementation.cpp:18 and include/Process/Tools/AnalysisTools.hpp:212-213 pass paths without a -- separator; cppcheck and tscancode use --file-list, and the runtime analyzer already passes --.
Fix: pass -- before the file paths, or ./ before a path that starts with -.
2. --static with --invoke runs a tool twice (C36)
ctrace --input ok.c --static --invoke cppcheck runs cppcheck twice and counts each of its findings twice.
Fix: merge the selections into one set of tools before running them.
3. Missing inputs are found late (C07, C08, C23)
A missing input file is passed to the tools, which fail: the run ends with exit 3, "cppcheck could not run", instead of saying that the file does not exist. A --compile-commands that does not exist gives "No input files resolved" without naming it.
Fix: check that each input exists before running any tool, and exit 1 naming the missing path.
Acceptance
- An input named
-x.cis analyzed by every tool. --static --invoke cppcheckruns cppcheck once.- A missing input or compile database exits 1 with its path in the message.
- A test for each.
- Lenguaje dominante
- C++
- Estrellas
- 5
- Forks
- 4
- Merge medio
- 1 h 57 min
- PR fusionados (30 d)
- 88
Preparar el entorno
- Sin Dockerfile ni 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 CoreTrace/coretrace
-
chore good first issue severity/minor
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
build severity/minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
CoreTrace/coretrace#176 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
build good first issue severity/minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Inputs: a file name starting with @ may be read as a response file by the compilerPosiblemente ocupada @SizzleUnrlsd la tomó hace 2 días. Abiertobug severity/minor
CoreTrace/coretrace#203 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Builds without a build type are unoptimized: the README's commands and CI's main jobPosiblemente ocupada @SizzleUnrlsd la tomó hace 3 días. Abiertobuild severity/minor
CoreTrace/coretrace#192 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de CoreTrace/coretrace
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
FujiNetWIFI/fujinet-firmware#2045 ·
Los mantenedores suelen responder en 1 día
-
(S1 - Need confirmation)
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
CleverRaven/Cataclysm-DDA#89159 ·
Los mantenedores suelen responder en 1 día
-
area:libnvmpi bug P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gjrtimmer/jetson-nvmpi#33 ·
-
bug(wasi_crypto): ArrayOutput::pull reports the wrong all-pulled flagPosiblemente ocupada @Yashbhu la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug question
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100