Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dbus/socket: protect against no-op arithmetic on NULL pointers
The socket layer assumes that computing `NULL + 0` produces `NULL`. Unfortunately, this is UB. Protect against this pointer arithmetic and ensure we correctly skip empty IOVs when consuming socket buffers. Reported-by: Frantisek Sumsal <[email protected]> Signed-off-by: David Rheinsberg <[email protected]>
- Loading branch information