DRS option is limited in Polyspace Code Prover
Afficher commentaires plus anciens
Hi guys,
I have this C++ code below:
void myfunc(int *arg, char *argv[])
{
if (*arg == 1)
*arg += 1;
char *p = argv[*arg];
if (p[0] == '-')
*arg += 1;
}
One of the Polyspace result is: Pointer may be outside its bounds. If appropriate, applying DRS to arg (argument number 1 of function myfunc(int *, char **), may remove this orange.
But when I tried to add and configure DRS, it has limited option as shown below:

There are no other options. Init Mode, Init Range and Initialize Pointer are disabled in this case.
Thank you in advance.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Command-Line Only Options dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!