avoid crash with test-linearize -vv
commit14964df5373292af78b29529d4fc7e1a26b67a97
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 19 Mar 2017 18:01:18 +0000 (19 19:01 +0100)
committerChristopher Li <sparse@chrisli.org>
Fri, 31 Mar 2017 05:14:17 +0000 (31 13:14 +0800)
treebded59e7554d39bf2d7fa845c15957ceabc6c4fd
parent97ebb345943918a0688b62cbc9bf878de01ccba4
avoid crash with test-linearize -vv

When verbose is set to 2 or higher, show_instruction()
also display removed instructions. Some of these instructions
can have their associated symbol removed and set to NULL
which will cause a crash with 'test-linearize -vv'.

Fix this by avoiding to dereference symbol's details of
removed instructions.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
linearize.c