Home
last modified time | relevance | path

Searched refs:pointer (Results 1 – 25 of 29) sorted by relevance

12

/mbedtls/tests/include/test/
A Dmacros.h124 #define TEST_CALLOC(pointer, item_count) \ argument
126 TEST_ASSERT((pointer) == NULL); \
128 (pointer) = mbedtls_calloc((item_count), \
129 sizeof(*(pointer))); \
130 TEST_ASSERT((pointer) != NULL); \
155 #define TEST_CALLOC_NONNULL(pointer, item_count) \ argument
157 TEST_ASSERT((pointer) == NULL); \
158 (pointer) = mbedtls_calloc((item_count), \
159 sizeof(*(pointer))); \
167 #define ASSERT_ALLOC(pointer, item_count) TEST_CALLOC(pointer, item_count) argument
[all …]
/mbedtls/programs/test/
A Dselftest.c382 void *pointer; in main() local
415 memset(&pointer, 0, sizeof(void *)); in main()
416 if (pointer != NULL) { in main()
/mbedtls/tests/suites/
A Dhost_test.function75 * \brief Read a line from the passed file pointer.
77 * \param f FILE pointer
509 void *pointer;
528 * of a NULL pointer. We do however use that in our code for initializing
531 memset(&pointer, 0, sizeof(void *));
532 if (pointer != NULL) {
533 mbedtls_fprintf(stderr, "all-bits-zero is not a NULL pointer\n");
A Dtest_suite_platform.function129 /* Dummy usage of the pointer to prevent optimizing it */
130 mbedtls_printf("calloc pointer : %p\n", buf);
A Dtest_suite_net.function69 * bug might trigger an invalid pointer dereference or a memory leak. */
A Dmain_test.function120 * \brief Function pointer type for test function wrappers.
A Dtest_suite_alignment.function58 * reading back with a normal pointer access. */
A Dtest_suite_entropy.function162 * bug might trigger an invalid pointer dereference or a memory leak. */
A Dtest_suite_asn1parse.data610 Free named data: null pointer
A Dtest_suite_pk.function887 /* In informational functions, we accept NULL where a context pointer
2525 /* Null pk pointer. */
A Dtest_suite_bignum.function155 * pointer and 0 length is passed. We don't care much about the return value. */
A Dtest_suite_rsa.function155 * bug might trigger an invalid pointer dereference or a memory leak. */
/mbedtls/
A D.uncrustify.cfg127 # At least 1 space before a '*' pointer star
130 # Remove spaces between pointer stars
133 # No space after a pointer star
A DCMakeLists.txt225 …n -fsanitize=undefined -fno-sanitize-recover=all -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
227 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
238 …n -fsanitize=undefined -fno-sanitize-recover=all -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
240 …set(CMAKE_C_FLAGS_MEMSANDBG "-fsanitize=memory -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
242 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
A DChangeLog958 * Fix a possible null pointer dereference if a memory allocation fails
1037 * Add accessor to get the raw buffer pointer from a PEM context.
1040 data can be either a pointer or an integer.
1193 pointer dereference. Fix this. Fixes #3998.
1410 * Fix a potential invalid pointer dereference and infinite loop bugs in
1504 mbedtls_sha256_finish and mbedtls_sha256 now has a pointer type
2372 NULL pointer argument. Contributed by Sander Visser in #3312.
4413 pointer, parameters reordered).
4641 * Fix remotely-triggerable uninitialised pointer dereference caused by
4966 * ssl_init() was leaving a dirty pointer in ssl_context if malloc of
[all …]
A DREADME.md267 - All-bits-zero must be a valid representation of a null pointer.
/mbedtls/docs/architecture/
A Dtls13-support.md255 pointer in functions parsing TLS 1.3 data, and for the writing pointer in
290 - When declaring a pointer the dereferencing operator should be prepended to
291 the pointer name not appended to the pointer type:
A Dpsa-shared-memory.md542 …ngth is always stored with them. In the case of output copies, we keep a pointer to the original b…
553 …ies the contents across from `input`. It then stores `input_len` and the pointer to the copy in th…
554 …()` on the local input that is referred to by `local_input` and sets the pointer in the struct to …
565 …_len` and stores `output_len` and the pointer to the buffer in the struct `local_output`. It also …
574 …ame)`, which declares and initializes a `psa_crypto_local_input_t` and a pointer with the name `in…
582 …rypto_local_output_t` is in an invalid state (the copy pointer is valid, but the original pointer
A Dalternative-implementations.md64 In practice, this means that a pointer to a context or to a part of a context does not remain valid…
/mbedtls/docs/architecture/testing/
A Ddriver-interface-test-strategy.md43 …t with a driver that does not have the requisite method (i.e. the method pointer is `NULL`) but ha…
44 …ver that does not have the substructure containing that method (i.e. the pointer to the substructu…
A Dinvasive-testing.md69 …h cases, the function should generally not modify its parameters, so any pointer argument should b…
71 With `MBEDTLS_TEST_HOOKS` set, `mbedtls_foo` is a global variable of function pointer type. This gl…
/mbedtls/docs/
A D3.0-migration-guide.md98 - In some functions that require a valid pointer, “parameter validation” checks
99 that the pointer is non-null. With the feature disabled, a null pointer is not
100 treated differently from any other invalid pointer, and typically leads to a
264 …edtls_sha256()`, `mbedtls_sha512_finish()`, `mbedtls_sha512()` now has a pointer type rather than …
266 … applications. If your code takes a pointer to one of these functions, you may need to change the …
490 pass `NULL` as the context pointer `p_rng` if your RNG function doesn't need a
/mbedtls/docs/proposed/
A Dpsa-driver-interface.md213 Buffers of size 0 may be represented with either a null pointer or a non-null pointer.
374 …ect. Call `psa_crypto_driver_key_derivation_get_input_key()` to obtain a pointer to the key contex…
399 * The first parameter `inputs` must be a pointer passed by the core to a key derivation driver setu…
426 * `inputs` is an opaque pointer to the [initial inputs](#key-derivation-driver-initial-inputs) for …
530 … same key. If the `"memory"` property is false or absent, the `memory` parameter is a null pointer.
665 The first parameter `inputs` must be a pointer passed by the core to a PAKE driver setup entry poin…
681 * `inputs` is an opaque pointer to the [inputs](#pake-driver-inputs) for the PAKE operation.
685pointer output by `psa_crypto_driver_pake_get_password_key` is only valid until the "pake_setup" e…
1049 …of bytes that the driver needs in a key context for a key. This may be a pointer to function. This…
1229pointer to the first byte of the persistent state. This pointer remains valid during a call to a d…
[all …]
/mbedtls/docs/architecture/psa-migration/
A Dmd-cipher-dispatch.md448 …ain either a legacy module's context (or a pointer to one, as is the case now), or a PSA context (…
450pointer indirection, but this means that an MD context would always be as large as the largest sup…
/mbedtls/docs/architecture/psa-thread-safety/
A Dpsa-thread-safety.md331 …For example, if the operation context has a pointer (depending on the compiler and the platform, t…

Completed in 89 milliseconds

12