diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@looxix.net> | 2005-06-27 01:36:35 +0200 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 17:21:18 -0700 |
| commit | 260a278aefde836683ea9a7e68f3983030338f39 (patch) | |
| tree | a6022376c412b9545c61943de4be0c40e040be25 /validation | |
| parent | fafb86f96d323c9b23e8519987adc195e031f456 (diff) | |
| download | sparse-dev-260a278aefde836683ea9a7e68f3983030338f39.tar.gz | |
[PATCH] avoid segfault in check_byte_count()
Avoid deferencing a null pointer in check_byte_count() after parse
errors in the checked function.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@looxix.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/check_byte_count-ice.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/validation/check_byte_count-ice.c b/validation/check_byte_count-ice.c new file mode 100644 index 00000000..eaeef960 --- /dev/null +++ b/validation/check_byte_count-ice.c @@ -0,0 +1,6 @@ +#include <string.h> + +static void foo(void *a) +{ + memset(foo, + ', 20); +} |
