PS Code Prover - Tooltip text expand, get fully list
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all.
I'm investigating Orange findings in PS Code Prover. Within the Non-init. pointer finding,
the tooltip shows me where the pointer may point to. But not all variables/structures are listed.
At the end of the tooltip text "...(total: 8)." is displayed.
Question: How to get the complete list where the pointer may point to? or how to expand the tooltip text?
Can I create a special report where to find this info? - i.e. a developer report does not contain this info.
BR and TY for your help & time.
Thomas
0 Commenti
Risposta accettata
Anirban
il 28 Apr 2021
Modificato: Anirban
il 28 Apr 2021
Hi,
Unfortunately, as of now, there is no way to see the full list. However, to investigate a Non-initialized pointer finding, you do not need this list (in some sense, you need its complement). You need to know whether it is possible that the pointer is never assigned an address along some path in your code.
An orange non-initialized pointer finding means that there is some path along which the pointer itself is not assigned an address. For instance, a simple case is if the assignment happens inside an if block with no else. If the if condition is not satisfied, the pointer is not initialized. Your investigation will involve finding this path (or maybe there is no such path and the result comes from some approximation Polyspace made. If you determine this is the case, you can add a justification to the result). See more details of tools available in the UI for further investigation in Review and Fix Non-initialized Pointer Checks.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Flow Checks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!