Fix a number of static analysis issues #2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest15 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | main: Simplify variable assignmentsrc/ | +10 | 0 replies | |
| 2/15 | shared/ecc: Fix uninitialised variable usagesrc/ | +2 | 0 replies | |
| 3/15 | shared/gatt-client: Fix uninitialised variable usagesrc/ | +1 | 0 replies | |
| 4/15 | tools/mesh-cfgclient: Fix uninitialised variable usagetools/ | +1 | 0 replies | |
| 5/15 | test-runner: Remove unused envptools/ | +2 | 0 replies | |
| 6/15 | test-runner: Fix uninitialised variable usagetools/ | +5 | 0 replies | |
| 7/15 | test-runner: Fix uninitialised variable usagetools/ | +2 | 0 replies | |
| 8/15 | shared/bap: Fix possible use-after-freesrc/ | +6 | 0 replies | |
| 9/15 | isotest: Fix bad freetools/ | +5 | 0 replies | |
| 10/15 | test-runner: Fix fd leak on failuretools/ | +2 | 0 replies | |
| 11/15 | isotest: Fix string size expectationstools/ | +11 | 0 replies | |
| 12/15 | mgmt-tester: Fix non-nul-terminated stringtools/ | +6 | 0 replies | |
| 13/15 | gdbus: Check sprintf retvalgdbus/ | +34 | 0 replies | |
| 14/15 | shared/bap: Fix memory leak in error pathsrc/ | +8 | 0 replies | |
| 15/15 | android/handsfree: Check sprintf retvalandroid/ | +11 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [BlueZ 00/15] Fix a number of static analysis issues #2
"main: Simplify variable assignment" makes a come back, moving out the single special-case out of the function.
For "shared/gatt-client: Fix uninitialised variable usage", please verify that this default value is correct.
Happy to iterate on any patches you feel are suboptimal. Note that the only patches that received any sort of real-world testing are the one mentioned above and the gdbus one.
Cheers
Bastien Nocera (15):
main: Simplify variable assignment shared/ecc: Fix uninitialised variable usage shared/gatt-client: Fix uninitialised variable usage tools/mesh-cfgclient: Fix uninitialised variable usage
test-runner: Remove unused envp
test-runner: Fix uninitialised variable usage
test-runner: Fix uninitialised variable usage shared/bap: Fix possible use-after-free
isotest: Fix bad free
test-runner: Fix fd leak on failure
isotest: Fix string size expectations
mgmt-tester: Fix non-nul-terminated string
gdbus: Check sprintf retval
shared/bap: Fix memory leak in error path android/handsfree: Check sprintf retval
android/handsfree.c | 14 +++++++++--- gdbus/watch.c | 46 +++++++++++++++++++++++++++++----------- src/main.c | 19 +++++++++-------- src/shared/bap.c | 19 ++++++++++++----- src/shared/ecc.c | 2 ++ src/shared/gatt-client.c | 2 +- tools/isotest.c | 20 +++++++++++++---- tools/mesh-cfgclient.c | 3 +-- tools/mgmt-tester.c | 8 +++++-- tools/test-runner.c | 15 +++++++++---- 10 files changed, 106 insertions(+), 42 deletions(-)
Signature · 1 line
2.44.0