]> git.sur5r.net Git - openocd/commit
NULL check before dereferencing
authorLuca BRUNO <lucab@debian.org>
Thu, 22 Aug 2013 14:22:31 +0000 (16:22 +0200)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 1 Dec 2013 12:44:09 +0000 (12:44 +0000)
commitbb8c0d55d4fa72fe48ef70f17ee40324a355b73f
tree15ebd6a3cfca163160c65e190c1b15310b865df5
parent4516eebabac0df24f00f40ff97ff570fdd39b2db
NULL check before dereferencing

Check reg_list[i]->feature for NULL pointers before checking feature->name
in order to avoid NULL access.

Change-Id: If20401a6c5aa5e1e29f0fcf9bb95585b49658832
Signed-off-by: Luca BRUNO <lucab@debian.org>
Reviewed-on: http://openocd.zylin.com/1809
Tested-by: jenkins
Reviewed-by: Peter Stuge <peter@stuge.se>
Reviewed-by: Jens Bauer <jens@gpio.dk>
src/server/gdb_server.c