Message ID | 20250428195122.2000808-1-luiz.dentz@gmail.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ,v2,1/5] main: Fix comparison of narrow type with wide type in loop condition | expand |
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=957841 ---Test result--- Test Summary: CheckPatch PENDING 0.25 seconds GitLint PENDING 0.28 seconds BuildEll PASS 20.36 seconds BluezMake PASS 2696.47 seconds MakeCheck PASS 20.52 seconds MakeDistcheck PASS 198.26 seconds CheckValgrind PASS 275.33 seconds CheckSmatch WARNING 303.36 seconds bluezmakeextell PASS 127.88 seconds IncrementalBuild PENDING 0.21 seconds ScanBuild PASS 903.97 seconds Details ############################## Test: CheckPatch - PENDING Desc: Run checkpatch.pl script Output: ############################## Test: GitLint - PENDING Desc: Run gitlint Output: ############################## Test: CheckSmatch - WARNING Desc: Run smatch tool with source Output: src/shared/bap.c:315:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:315:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structuressrc/shared/bap.c:315:25: warning: array of flexible structuressrc/shared/bap.c: note: in included file:./src/shared/ascs.h:88:25: warning: array of flexible structures ############################## Test: IncrementalBuild - PENDING Desc: Incremental build with the patches in the series Output: --- Regards, Linux Bluetooth
diff --git a/src/main.c b/src/main.c index 6a682e9b921f..3c51a0092425 100644 --- a/src/main.c +++ b/src/main.c @@ -501,7 +501,7 @@ static void parse_mode_config(GKeyFile *config, const char *group, const struct config_param *params, size_t params_len) { - uint16_t i; + size_t i; if (!config) return;
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> In a loop condition, comparison of a value of a narrow type with a value of a wide type may result in unexpected behavior if the wider value is sufficiently large (or small). Fixes: https://github.com/bluez/bluez/issues/1213 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)