Just for completeness: tests show that the max amount of memory allocated in wolfSSL in a singel call via XMALLOC is 17518 bytes (which is 17kB + 110 bytes).

Thanks Chris!

Hi Chris,

When using XMALLOC, the application specifies the size of the memory that must be allocated. So XMALLOC(100,0,0) will allocate a contiguous memory of 100 bytes. It is the maximum value of this size that i am interrested in. So what is the maximum nr of bytes that is allocated via XMALLOC in wolfSSL in one call of XMALLOC.

The reason for my question is this. I have ported wolfSSL to OCTEON. The OCTEON processor can allocate dynamic memory very fast, but is will allocate only a predefined and static amount of memory. So this predefined amount of memory has to be large enough to host te largest amount of memory that will be allocated via wolfSSL. if i now what the largest amount of allocated memory in wolfSSL will be, i can determine the amount of memory that has to be allocated by the OCTEON when executing an allocation of memory.

Hope this does clear up things.


Regards,

Johan Kleuskens

I'm implementing wolfSSL for Octeon, and i need to implement my own malloc() and realloc() function via XMALLOC and XREALLOC. Because a fixed size memory is used for this, i need to know what the maximum amount of allocated memory will we in wolfSSL. Experiments show that untill now the maximum does not exceed 2048 bytes, but it would be nice if you could specify what the maximum amount will be.