Message ID | 20240621075517.22576-2-sarveshwar.bajaj@nxp.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e453627223db0d6488d2bdb2847dfc0865047730 |
Headers | show |
Series | Fix null pointer dereference in util_ltv_foreach | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | success | CheckPatch PASS |
tedd_an/GitLint | success | Gitlint PASS |
tedd_an/BuildEll | success | Build ELL PASS |
tedd_an/BluezMake | success | Bluez Make PASS |
tedd_an/MakeCheck | success | Bluez Make Check PASS |
tedd_an/MakeDistcheck | success | Make Distcheck PASS |
tedd_an/CheckValgrind | success | Check Valgrind PASS |
tedd_an/CheckSmatch | success | CheckSparse PASS |
tedd_an/bluezmakeextell | success | Make External ELL PASS |
tedd_an/IncrementalBuild | success | Incremental Build PASS |
tedd_an/ScanBuild | success | Scan Build PASS |
This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=864176 ---Test result--- Test Summary: CheckPatch PASS 0.32 seconds GitLint PASS 0.24 seconds BuildEll PASS 25.08 seconds BluezMake PASS 1747.58 seconds MakeCheck PASS 13.12 seconds MakeDistcheck PASS 186.33 seconds CheckValgrind PASS 260.03 seconds CheckSmatch PASS 358.23 seconds bluezmakeextell PASS 122.82 seconds IncrementalBuild PASS 1511.84 seconds ScanBuild PASS 1065.48 seconds --- Regards, Linux Bluetooth
diff --git a/src/shared/util.c b/src/shared/util.c index 30f054a5e..6e7634ad1 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -182,7 +182,7 @@ bool util_ltv_foreach(const uint8_t *data, uint8_t len, uint8_t *type, struct iovec iov; int i; - if (!func) + if (!func || !data) return false; iov.iov_base = (void *) data;