[PATCH 0/2] fix crash on bad expression in linearize_switch()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux