raspberrypi / pico-sdk

BSD 3-Clause "New" or "Revised" License
3.24k stars 837 forks source link

check_alloc uses wrong size for calloc #1717

Open JNTeledyne opened 1 month ago

JNTeledyne commented 1 month ago

Inside pico_malloc.c the calloc function passes the wrong size to check_alloc. Also the size for the low water test is incorrect. They should be (size * count) instead of just size.