Commit: 050cead360676d35a28e17ab0c70a08d816def72
Parent: cfab569484b18407fc117bb96634525cc76ea1f5
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2022-01-07 23:28:46
Tree: f8edb892396ee1696c7aee2fc731b91cd2e9b409

avdtp: Fix runtime errors passing NULL to memcpy Passing NULL to memcpy is considered undefined behavior which leads to the following runtime errors: profiles/audio/avdtp.c:2709:2: runtime error: null pointer passed as argument 1, which is declared to never be null profiles/audio/avdtp.c:2709:2: runtime error: null pointer passed as argument 2, which is declared to never be null profiles/audio/avdtp.c:3326:2: runtime error: null pointer passed as argument 2, which is declared to never be null profiles/audio/avdtp.c:500:3: runtime error: null pointer passed as argument 2, which is declared to never be null

Diffstat

M profiles/audio/avdtp.c | 15 +++++++++- - - - - -

1 files changed, 9 insertions(+), 6 deletions(-)

View Full Diff | Patch