Print this page
smatch: check libld_* allocation functions

*** 909,918 **** --- 909,922 ---- add_allocation_function("kmap", &match_page, 0); add_allocation_function("get_zeroed_page", &match_page, 0); add_allocation_function("alloc_pages", &match_alloc_pages, 1); add_allocation_function("alloc_pages_current", &match_alloc_pages, 1); add_allocation_function("__get_free_pages", &match_alloc_pages, 1); + } else if (option_project == PROJ_ILLUMOS_USER) { + add_allocation_function("libld_malloc", &match_alloc, 0); + add_allocation_function("libld_realloc", &match_alloc, 1); + add_allocation_function("libld_calloc", &match_calloc, 0); } add_allocation_function("strndup", match_strndup, 0); if (option_project == PROJ_KERNEL) add_allocation_function("kstrndup", match_strndup, 0);