Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 17 of 17) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/library/
Dmemory_buffer_alloc.c68 static buffer_alloc_ctx heap; variable
95 memory_header *cur = heap.first; in debug_chain()
104 cur = heap.first_free; in debug_chain()
155 memory_header *prv = heap.first, *cur; in verify_chain()
165 if (heap.first->prev != NULL) { in verify_chain()
173 cur = heap.first->next; in verify_chain()
201 memory_header *new, *cur = heap.first_free; in buffer_alloc_calloc()
210 if (heap.buf == NULL || heap.first == NULL) { in buffer_alloc_calloc()
250 heap.alloc_count++; in buffer_alloc_calloc()
264 heap.first_free = cur->next_free; in buffer_alloc_calloc()
[all …]
/openthread-latest/tests/unit/
Dtest_heap.cpp50 ot::Utils::Heap heap; in TestAllocateSingle() local
52 const size_t totalSize = heap.GetFreeSize(); in TestAllocateSingle()
55 void *p = heap.CAlloc(1, 0); in TestAllocateSingle()
56 …VerifyOrQuit(p == nullptr && totalSize == heap.GetFreeSize(), "TestAllocateSingle allocate 1 x 0 b… in TestAllocateSingle()
57 heap.Free(p); in TestAllocateSingle()
59 p = heap.CAlloc(0, 1); in TestAllocateSingle()
60 …VerifyOrQuit(p == nullptr && totalSize == heap.GetFreeSize(), "TestAllocateSingle allocate 0 x 1 b… in TestAllocateSingle()
61 heap.Free(p); in TestAllocateSingle()
64 for (size_t size = 1; size <= heap.GetCapacity(); ++size) in TestAllocateSingle()
67 void *p = heap.CAlloc(1, size); in TestAllocateSingle()
[all …]
DCMakeLists.txt218 ot_unit_test(heap)
/openthread-latest/third_party/mbedtls/repo/scripts/
Dmassif_max.pl24 my ($heap, $heap_extra, $stack) = m{
29 next unless defined $heap;
30 my $total = $heap + $heap_extra + $stack;
32 ($max, $max_heap, $max_he, $max_stack) = ($total, $heap, $heap_extra, $stack);
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_memory_buffer_alloc.data19 Memory buffer: heap too small (header verification should fail)
Dtest_suite_asn1write.function287 * a small-heap environment. The boundary is somewhat arbitrary. */
Dtest_suite_psa_crypto.function1678 * accommodate large keys due to heap size constraints */
/openthread-latest/etc/gn/
Dopenthread.gni147 # Enable external heap support
177 # Enable use built-in heap for message buffers
/openthread-latest/src/core/
DBUILD.gn410 "common/heap.cpp",
411 "common/heap.hpp",
723 "utils/heap.cpp",
724 "utils/heap.hpp",
DCMakeLists.txt109 common/heap.cpp
256 utils/heap.cpp
/openthread-latest/include/openthread/
DBUILD.gn65 "heap.h",
/openthread-latest/etc/cmake/
Doptions.cmake209 ot_option(OT_EXTERNAL_HEAP OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE "external heap")
223 ot_option(OT_MESSAGE_USE_HEAP OPENTHREAD_CONFIG_MESSAGE_USE_HEAP_ENABLE "heap allocator for message…
/openthread-latest/third_party/mbedtls/repo/
DChangeLog234 * Use heap memory to allocate DER encoded public/private key.
276 the buffer, causing a heap buffer overflow.
466 * Fix a remotely exploitable heap buffer overflow in TLS handshake parsing.
561 * Use heap memory to allocate DER encoded RSA private key.
680 * Fix a potential heap buffer overread in TLS 1.3 client-side when
898 * Fix potential heap buffer overread and overwrite in DTLS if
1125 could thus potentially leak the key through freed heap.
1132 * Fix a potential heap buffer overread in TLS 1.2 server-side when
1260 temporary variable on the heap. Suggested by Sergey Kanatov in #5304.
3579 * Fix a 1-byte heap buffer overflow (read-only) during private key parsing.
[all …]
/openthread-latest/third_party/mbedtls/repo/docs/architecture/
Dalternative-implementations.md54 … a language with automatic memory management that can move objects on the heap.) That is, call seq…
Dpsa-shared-memory.md134 … be copied into or out of a buffer in memory owned by the crypto service (heap or stack). This add…
525 Given that the majority of functions will be allocating memory on the heap to copy, it is helpful t…
527 In order to keep track of allocated copies on the heap, we can create new structs:
/openthread-latest/third_party/mbedtls/repo/3rdparty/p256-m/p256-m/
DREADME.md151 p256-m doesn't use any dynamic memory (on the heap), only the stack. Here's
216 TinyCrypto also uses no heap, only the stack. Here's the RAM used by each
/openthread-latest/third_party/mbedtls/repo/docs/
Dpsa-transition.md100 Note that a key consumes a key store entry, which is distinct from heap memory, until it is destroy…