Hi,

Please find the latest report on new defect(s) introduced to ODP found with 
Coverity Scan.

1 new defect(s) introduced to ODP found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 85015:  Copy into fixed size buffer  (STRING_OVERFLOW)
/test/validation/odp_system.c: 31 in test_odp_sys_cpu_model_str()


________________________________________________________________________________________________________
*** CID 85015:  Copy into fixed size buffer  (STRING_OVERFLOW)
/test/validation/odp_system.c: 31 in test_odp_sys_cpu_model_str()
25     }
26     
27     static void test_odp_sys_cpu_model_str(void)
28     {
29      char model[128];
30     
>>>     CID 85015:  Copy into fixed size buffer  (STRING_OVERFLOW)
>>>     You might overrun the 128 byte fixed-size string "model" by copying the 
>>> return value of "odp_sys_cpu_model_str" without checking the length.
31      strcpy(model, odp_sys_cpu_model_str());
32      CU_ASSERT(strlen(model) > 0);
33      CU_ASSERT(strlen(model) < 127);
34     }
35     
36     static void test_odp_sys_page_size(void)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
http://scan.coverity.com/projects/2925?tab=overview

To manage Coverity Scan email notifications for "[email protected]", 
click 
http://scan.coverity.com/subscriptions/edit?email=lng-odp%40lists.linaro.org&token=e54a60bd6fe9c6955bcaee6dcb2e2bf2
 .


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to