You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Null pointer dereference on malloc failure in freenect_init_registration_table() #699
freenect_init_registration_table() in src/registration.c does not check the return value of malloc() before passing the pointer to memset(). If malloc() fails and returns NULL, memset(NULL, ...) causes a null pointer dereference crash.
Location
src/registration.c, inside freenect_init_registration_table() — the malloc() call for the registration table buffer.
Impact
An application that initializes Freenect registration under memory pressure will crash with a segmentation fault (denial of service).
Fix
PR #698 adds a NULL check after malloc() and returns an error code on failure.
Activity
hirorogo commentedon Apr 10, 2026
Closing — the PR itself (#698) contains the full bug description. No separate issue needed.