Skip to content

Commit 3c6b062

Browse files
fix for buffer size recomendation
1 parent 8a11389 commit 3c6b062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

staticmemory/memory-bucket-optimizer/optimizer/memory_bucket_optimizer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ void print_buffer_recommendations(int* buckets, int* dist, int num_buckets)
585585
total_overhead += dist[i] * wolfSSL_MemoryPaddingSz();
586586
}
587587

588-
total_overhead += WOLFSSL_HEAP_SIZE + WOLFSSL_HEAP_HINT_SIZE;
588+
total_overhead += sizeof(WOLFSSL_HEAP_HINT) + sizeof(WOLFSSL_HEAP) +
589+
WOLFSSL_STATIC_ALIGN;
589590
total_memory_needed = total_bucket_memory + total_overhead;
590591

591592
printf("\nBuffer Size Recommendations:\n");

0 commit comments

Comments
 (0)