Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.sbin/bta2dpd/bta2dpd
Module Name: src
Committed By: kamil
Date: Wed Jul 25 19:03:50 UTC 2018
Modified Files:
src/usr.sbin/bta2dpd/bta2dpd: avdtp.c
Log Message:
Avoid potential undefined behavior in bta2dpd(8)
The operator >> causes implicit promotion to int.
There is need to cast the result back to uint8_t in order to save the
return value to a data undef a pointe of type uint8_t.
Requested by GCC when building with Undefined Behavior Sanitizer.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/bta2dpd/bta2dpd/avdtp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index