We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
realloc is expecting the size not caps. Diff for the same.
diff --git a/components/heap/heap_caps_linux.c b/components/heap/heap_caps_linux.c index 981f861674..67746132de 100644 --- a/components/heap/heap_caps_linux.c +++ b/components/heap/heap_caps_linux.c @@ -80,7 +80,7 @@ void *heap_caps_malloc_prefer( size_t size, size_t num, ... ) static void *heap_caps_realloc_base( void *ptr, size_t size, uint32_t caps) { - ptr = realloc(ptr, caps); + ptr = realloc(ptr, size); if (ptr == NULL && size > 0) { heap_caps_alloc_failed(size, caps, __func__);
The text was updated successfully, but these errors were encountered:
Ah, you are right. Thanks for reporting this.
We'll fix it.
Sorry, something went wrong.
@espradio The fix has been merged internally and will synchronize to github soon.
5b77f77
core-system/linux-target: fixed heap_caps_realloc not correctly alloc…
c337759
…ating the requested number of bytes Closes #11523
No branches or pull requests
Answers checklist.
General issue report
realloc is expecting the size not caps. Diff for the same.
The text was updated successfully, but these errors were encountered: