https://bugs.linaro.org/show_bug.cgi?id=1534

            Bug ID: 1534
           Summary: CID 93517:  Null pointer de-references:
                    example/classifier/odp_classifier.c
           Product: OpenDataPlane
           Version: 1.0.4
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: Classification
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

*** CID 93517:  Null pointer dereferences  (NULL_RETURNS)
/example/classifier/odp_classifier.c: 594 in parse_pmr_policy()
588             len = strlen(optarg);
589             len++;
590             pmr_str = malloc(len);
591             strcpy(pmr_str, optarg);
592
593             /* PMR TERM */
>>>     CID 93517:  Null pointer dereferences  (NULL_RETURNS)
>>>     Assigning: "token" = null return value from "strtok".
594             token = strtok(pmr_str, ":");
595             if (convert_str_to_pmr_enum(token, &term)) {
596                     EXAMPLE_ERR("Invalid ODP_PMR_TERM string\n");
597                     exit(EXIT_FAILURE);
598             }
599             stats[policy_count].rule.term = term;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to