diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2012-02-20 21:57:57 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-13 15:59:53 +0200 |
commit | ba9888c3cf663be883e5c7b78f1cf74e418a719c (patch) | |
tree | 08a020e00bd492739f3eeb9d7bf52c154aa12b7f /lib/sdp.h | |
parent | 817b2577f81092a37120e507c323c643cd65e6a9 (diff) | |
download | bluez-ba9888c3cf663be883e5c7b78f1cf74e418a719c.tar.gz |
sdp: Check type of sdp data before dereferencing
Diffstat (limited to 'lib/sdp.h')
-rw-r--r-- | lib/sdp.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -432,6 +432,7 @@ typedef struct { } uuid_t; #define SDP_IS_UUID(x) ((x) == SDP_UUID16 || (x) == SDP_UUID32 || (x) ==SDP_UUID128) +#define SDP_IS_SEQ(x) ((x) == SDP_SEQ8 || (x) == SDP_SEQ16 || (x) == SDP_SEQ32) typedef struct _sdp_list sdp_list_t; struct _sdp_list { |