CID 976986: NULL deref.
This commit is contained in:
parent
7a74e96fe5
commit
9a0dcc7c97
19
sys/external/bsd/sljit/dist/test_src/sljitTest.c
vendored
19
sys/external/bsd/sljit/dist/test_src/sljitTest.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sljitTest.c,v 1.5 2015/02/16 13:30:15 alnsn Exp $ */
|
||||
/* $NetBSD: sljitTest.c,v 1.6 2015/05/09 13:16:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Stack-less Just-In-Time compiler
|
||||
@ -65,11 +65,18 @@ static sljit_si silent = 0;
|
||||
}
|
||||
|
||||
#define CHECK(compiler) \
|
||||
if (sljit_get_compiler_error(compiler) != SLJIT_ERR_COMPILED) { \
|
||||
printf("Compiler error: %d\n", sljit_get_compiler_error(compiler)); \
|
||||
sljit_free_compiler(compiler); \
|
||||
return; \
|
||||
}
|
||||
do { \
|
||||
if (compiler == NULL) { \
|
||||
printf("Can't create compiler\n"); \
|
||||
return; \
|
||||
} \
|
||||
if (sljit_get_compiler_error(compiler) != SLJIT_ERR_COMPILED) { \
|
||||
printf("Compiler error: %d\n", \
|
||||
sljit_get_compiler_error(compiler)); \
|
||||
sljit_free_compiler(compiler); \
|
||||
return; \
|
||||
} \
|
||||
} while (/*CONSTCOND*/0)
|
||||
|
||||
static void cond_set(struct sljit_compiler *compiler, sljit_si dst, sljit_sw dstw, sljit_si type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user