Commit 3a8190a
Bluetooth: SDP: Check len is not zero before accessing data pointer
Check len is not zero before accessing data pointer, the len variable
is not checked before this point so cannot be trusted to not be zero.
Signed-off-by: Joakim Andersson <[email protected]>1 parent 7abc68d commit 3a8190a
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2138 | 2138 | | |
2139 | 2139 | | |
2140 | 2140 | | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2141 | 2145 | | |
2142 | 2146 | | |
2143 | 2147 | | |
| |||
2174 | 2178 | | |
2175 | 2179 | | |
2176 | 2180 | | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2177 | 2185 | | |
2178 | 2186 | | |
2179 | 2187 | | |
| |||
0 commit comments