Commit: 537c69f76e34d2aa168062098a1125449b3b262b
Parent: 0e18e5e482ece1f1ecb8d04f500a45b540e40a25
Author: Szymon Janc <szymon.janc@codecoup.pl>
Committer: Szymon Janc <szymon.janc@codecoup.pl>
Date: 2015-11-24 21:57:05
Tree: c453bd45520c09d0d5e79be142512f1395271976

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.

Diffstat

M monitor/packet.c | 27 ++++++++++++++- - - - - - - - - - - - -

1 files changed, 14 insertions(+), 13 deletions(-)

View Full Diff | Patch