linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] hcidump: fix a crash in le_meta_ev_dump()
@ 2020-08-30 11:59 zefang han
  2020-08-30 12:24 ` [BlueZ] " bluez.test.bot
  2020-08-30 12:24 ` bluez.test.bot
  0 siblings, 2 replies; 3+ messages in thread
From: zefang han @ 2020-08-30 11:59 UTC (permalink / raw)
  To: linux-bluetooth

---
 tools/parser/hci.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/parser/hci.c b/tools/parser/hci.c
index 41f6fe087..e969d198c 100644
--- a/tools/parser/hci.c
+++ b/tools/parser/hci.c
@@ -3668,7 +3668,12 @@ static inline void le_meta_ev_dump(int level, struct frame *frm)
 	frm->len -= EVT_LE_META_EVENT_SIZE;
 
 	p_indent(level, frm);
-	printf("%s\n", ev_le_meta_str[subevent]);
+
+	if(subevent > LE_EV_NUM){
+		printf("Unknown\n");
+	}else{
+		printf("%s\n", ev_le_meta_str[subevent]);
+	}
 
 	switch (mevt->subevent) {
 	case EVT_LE_CONN_COMPLETE:
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [BlueZ] hcidump: fix a crash in le_meta_ev_dump()
  2020-08-30 11:59 [PATCH BlueZ] hcidump: fix a crash in le_meta_ev_dump() zefang han
@ 2020-08-30 12:24 ` bluez.test.bot
  2020-08-30 12:24 ` bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2020-08-30 12:24 UTC (permalink / raw)
  To: linux-bluetooth, hanzefang

[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]


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.
While we are preparing for reviewing the patches, we found the following
issue/warning.

Test Result:
checkpatch Failed

Outputs:
ERROR:SPACING: space required before the open brace '{'
#17: FILE: tools/parser/hci.c:3672:
+	if(subevent > LE_EV_NUM){

ERROR:SPACING: space required before the open parenthesis '('
#17: FILE: tools/parser/hci.c:3672:
+	if(subevent > LE_EV_NUM){

ERROR:SPACING: space required before the open brace '{'
#19: FILE: tools/parser/hci.c:3674:
+	}else{

ERROR:SPACING: space required after that close brace '}'
#19: FILE: tools/parser/hci.c:3674:
+	}else{

- total: 4 errors, 0 warnings, 13 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

Your patch has style problems, please review.

NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPLIT_STRING SSCANF_TO_KSTRTO

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.



---
Regards,
Linux Bluetooth

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [BlueZ] hcidump: fix a crash in le_meta_ev_dump()
  2020-08-30 11:59 [PATCH BlueZ] hcidump: fix a crash in le_meta_ev_dump() zefang han
  2020-08-30 12:24 ` [BlueZ] " bluez.test.bot
@ 2020-08-30 12:24 ` bluez.test.bot
  1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2020-08-30 12:24 UTC (permalink / raw)
  To: linux-bluetooth, hanzefang

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]


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.
While we are preparing for reviewing the patches, we found the following
issue/warning.

Test Result:
checkgitlint Failed

Outputs:
3: B6 Body message is missing



---
Regards,
Linux Bluetooth

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-30 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-30 11:59 [PATCH BlueZ] hcidump: fix a crash in le_meta_ev_dump() zefang han
2020-08-30 12:24 ` [BlueZ] " bluez.test.bot
2020-08-30 12:24 ` bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).