-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
In our codebase, return values from external libraries are not always checked. For return codes, this can manifest as issues later during execution that require careful debugging to track down the cause of. For return values as pointers, this can manifest itself as segfaults.
The following calls have been identified, though this isn't an exhaustive list:
xkb_state_key_get_utf8xkb_compose_table_new_from_localeeglBindAPI,eglDestroyImageKHR,eglDebugMessageControlKHR,eglDestroyContext,eglDestroySurfaceand friendspixman_image_create_bits,pixman_transform_scale,pixman_image_set_transform,pixman_image_set_filterudev_enumerate_scan_devices,udev_monitor_enable_receiving,udev_monitor_filter_add_match_subsystem_devtype,udev_device_get_actiondrmGetCap
For most of these, printing something should be enough. Though for others more work may be needed.
In addition to plugging the holes we currently have, it would be nice to have some code analysis tool (TICS?) to give us a list of all calls where we don't use/check the return value.
Copilot
Metadata
Metadata
Assignees
Labels
No labels