[PATCH] segfault on bad ternary conditional
commit98346fe1671f052d4b2c7b36229235c64bb31a32
authorLuc Van Oostenryck <lkml@looxix.net>
Mon, 20 Jun 2005 22:29:29 +0000 (21 00:29 +0200)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 20 Jun 2005 22:52:14 +0000 (20 15:52 -0700)
tree022c131ce39b90f1eeac91ad3f6ef0cea9364995
parentce4b69f9e7878a7c7041b5f9cee587ed0d82e8cf
[PATCH] segfault on bad ternary conditional

sparse segfault on the following input:

static int foo(int a)
{
return a ?? 1 : 0;
}

This adds a new validation file and fixes the segfault.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@looxix.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
linearize.c
validation/bad-ternary-cond.c [new file with mode: 0644]