cortex-gnat-rts icon indicating copy to clipboard operation
cortex-gnat-rts copied to clipboard

Reentrancy in newlib

Open simonjwright opened this issue 5 years ago • 0 comments

This paper goes into considerable detail about dealing with the fact that some newlib functions (e.g. printf family) use an internal malloc() which is not reentrant. Reentrancy can be supported at some cost.

This doesn’t appear to be a problem for Ada projects (e.g my Certyflie fork), but could cause a nasty surprise if not handled.

simonjwright avatar Jul 25 '20 21:07 simonjwright