OSDN Git Service

monitor: Fix possible crash on unknown LE Meta Event
authorSzymon Janc <szymon.janc@codecoup.pl>
Sat, 21 Nov 2015 20:09:04 +0000 (21:09 +0100)
committerSzymon Janc <szymon.janc@codecoup.pl>
Tue, 24 Nov 2015 19:57:05 +0000 (20:57 +0100)
commit537c69f76e34d2aa168062098a1125449b3b262b
treec453bd45520c09d0d5e79be142512f1395271976
parent0e18e5e482ece1f1ecb8d04f500a45b540e40a25
monitor: Fix possible crash on unknown LE Meta Event

For unknown LE Meta Event subevent_data passed to print_subevent is
NULL. This results in NULL pointer dereference when subeven code is
printed. Fix that by making print_subevent expect always valid
subevent_data and handle unknown event in caller.
monitor/packet.c