[RESTRICT AUTOMERGE] Updated CTS test for Android Security b/68300072 Updated the return code to return EXIT_FAILURE when the test exits before hitting the vulnerability Bug: 68300072 Bug: 72323283 Test: Ran the new testcase on android-8.0.0_r11 with/without patch Change-Id: I6248bd4fa8430356b976994a75af6c94f671f885
diff --git a/hostsidetests/securitybulletin/securityPatch/CVE-2017-13189/poc.c b/hostsidetests/securitybulletin/securityPatch/CVE-2017-13189/poc.c index 2f94226..6854d98 100644 --- a/hostsidetests/securitybulletin/securityPatch/CVE-2017-13189/poc.c +++ b/hostsidetests/securitybulletin/securityPatch/CVE-2017-13189/poc.c
@@ -43,7 +43,7 @@ ret = ih264d_api_function(NULL, (void *) &s_create_ip, (void *) &s_create_op); if (ret != IV_SUCCESS) { - return EXIT_SUCCESS; + return EXIT_FAILURE; } if (s_create_op.s_ivd_create_op_t.pv_handle == NULL) { return EXIT_VULNERABLE;