Skip to content
Commit 8a8ca905 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by zhuyanting
Browse files

bt: use size_t type for length parameters instead of int



The length parameter values are not negative, thus use an unsigned
type 'size_t' for them. Many routines pass 'len' values to memcpy(3)
calls. If it was negative, it could lead to memory corruption issues.
Add check to avoid it.

Reported-by: default avatarArash TC <tohidi.arash@gmail.com>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
parent c7d70156
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment