This two patches series contains a fix for a crash caused by a null-pointer dereference when the condition in a switch contains no expression at all. As a bonus, sparse now warns on such empty expressions. Luc Van Oostenryck (2): warn on empty parenthesized expressions fix crash on bad expression in linearize_switch() expression.c | 6 ++++++ linearize.c | 2 ++ validation/empty-expr.c | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 validation/empty-expr.c -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html