mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-28 18:07:34 +08:00
Merge 9f80b23edba1eb6dc40b63adb35b30c1b7a0e325 into 03e1438089654fb884ac48e0f3cd0049cfe2c102
This commit is contained in:
commit
ac90bcf042
@ -179,12 +179,12 @@ void pkcs7_verify(char *pkcs7_file,
|
||||
TEST_EQUAL(res, 0);
|
||||
}
|
||||
|
||||
res = stat(filetobesigned, &st);
|
||||
TEST_EQUAL(res, 0);
|
||||
|
||||
file = fopen(filetobesigned, "rb");
|
||||
TEST_ASSERT(file != NULL);
|
||||
|
||||
res = fstat(fileno(file), &st);
|
||||
TEST_EQUAL(res, 0);
|
||||
|
||||
datalen = st.st_size;
|
||||
/* Special-case for zero-length input so that data will be non-NULL */
|
||||
TEST_CALLOC(data, datalen == 0 ? 1 : datalen);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user