Closed antevir closed 8 years ago
Automatic CI verification build not done, please verify manually.
Cc @bremoran
mbed_krbs
and mbed_krbs_ex
are intended to have the same semantics as sbrk and mbed_sbrk
. As a result, it's intentional that mbed_krbs_ex
returns -1.
I believe the fault lies with ualloc
, which should translate a -1
from krbs
into a NULL
.
I have filed a PR to fix this issue from the ualloc side.
You are right! Better to keep the sbrk semantec.
mbed_krbs_ex returned -1 on failed allocation while callers checks for NULL, resulting in corrupt memory and HardFault
Fixes #46