Read the confidence and the related locations of every analyzer into the merged log
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 56/100
Direzione di ricerca
Start with diagnosticsFromSarif in src/Process/Tools/Sarif.cpp and toDiagnostics in src/Process/Tools/StackAnalyzerToolImplementation.cpp, then check the model fields and existing unit tests for diagnostics. Add tests showing related locations and recognized confidence reach the model, unknown confidence is ignored, and stack confidence maps to a level. Run the unit tests and ctest with the fake runtime analyzer; done means the merged heap finding retains its "allocated here" location.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Observed
The merged SARIF log carries a finding's confidence and related locations: the result property confidence, and relatedLocations. Only the concurrency analyzer reaches them today, through its bridge. The other paths drop them:
- SARIF reader:
diagnosticsFromSarif(src/Process/Tools/Sarif.cpp), used for flawfinder and the Python and runtime analyzers, reads neitherrelatedLocationsnorproperties.confidence. The runtime analyzer already writes a related location, the allocation of a heap finding ("allocated here"), and it is lost. - Stack analyzer bridge:
toDiagnostics(src/Process/Tools/StackAnalyzerToolImplementation.cpp) dropsDiagnostic::confidence, a number in [0, 1].
Proposed
- SARIF reader: read
relatedLocations(location and message) andproperties.confidence.- Accept
low,mediumandhighin any case: the concurrency analyzer's own SARIF writesHIGH. - Ignore any other value.
- Accept
- Stack analyzer bridge: map the stack analyzer's confidence to a level, with the thresholds or the level CoreTrace/coretrace-stack-analyzer#244 settles on.
The analyzers' side:
- CoreTrace/coretrace-python-analyzer#271: confidence and related locations in the Python analyzer's SARIF;
- CoreTrace/coretrace-runtime-analyzer#30: confidence in the runtime analyzer's SARIF;
- CoreTrace/coretrace-stack-analyzer#244: related locations and confidence level in the stack analyzer.
Acceptance
- Unit tests:
- a SARIF result's related locations and confidence reach the model;
- an unknown confidence value is ignored;
- a stack analyzer confidence maps to a level.
- ctest: with the fake runtime analyzer, a heap finding keeps its "allocated here" related location in the merged log.
- Lingua principale
- C++
- Stelle
- 5
- Fork
- 4
- Merge medio
- 5h 56m
- PR unite (30g)
- 65
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CoreTrace/coretrace
-
chore good first issue severity/minor
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
build severity/minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
CoreTrace/coretrace#176 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
build good first issue severity/minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Merged SARIF log drops rule descriptionsForse già presa @SizzleUnrlsd l’ha presa 4 giorni fa. Apertaenhancement severity/minor
CoreTrace/coretrace#207 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Inputs: a file name starting with @ may be read as a response file by the compilerForse già presa @SizzleUnrlsd l’ha presa 7 giorni fa. Apertabug severity/minor
CoreTrace/coretrace#203 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CoreTrace/coretrace
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
macOS: a double-click on a notarized altairsim is refused, and the docs give only the offline caseForse già presa @anhaoXie l’ha presa oggi. Apertadocumentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
mutationpp/Mutationpp#337 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bulletphysics/bullet3#4819 ·
-
[YSQL] Local-node initdb reads postgres.bki, but YB clusters bootstrap only from yb_postgres.bkiApertaarea/ysql kind/enhancement priority/low status/awaiting-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
yugabyte/yugabyte-db#35763 ·
I maintainer di solito rispondono entro 1 giorno