commit | 9c39d108d8c1057ad29e83a4db0f4a396772987f | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@nokia.com> | Tue Oct 06 15:28:25 2009 +0200 |
committer | Johan Hedberg <johan.hedberg@nokia.com> | Tue Oct 06 16:49:21 2009 +0200 |
tree | 022dab64c5218cbe81a28175e9ba9a6720d6ae5b | |
parent | 4bec43039626e853489e72149014868f8c8afedc [diff] |
Fix off-by-one issue with AVDTP capability parsing
diff --git a/audio/avdtp.c b/audio/avdtp.c index 9db25e9..ba9b47a 100644 --- a/audio/avdtp.c +++ b/audio/avdtp.c
@@ -1126,7 +1126,7 @@ GSList *caps; int processed; - for (processed = 0, caps = NULL; processed + 2 < size;) { + for (processed = 0, caps = NULL; processed + 2 <= size;) { struct avdtp_service_capability *cap; uint8_t length, category;