tinyvm/libtvm
Adygzhy Ondar 1911acb84f tvm_vm_create(): fix possible NULL pointer dereferencing.
if calloc() doesn't allocate memory for struct tvm_ctx,
there may be NULL pointer dereferencing, i.e. vm->mem, vm->prog.
So the vm pointer verification must be before it is used.

Also, there is the same situation with vm->mem and stack creation.
2017-10-28 14:00:01 +03:00
..
.gitignore Updated .gitignore 2011-09-04 06:04:00 -07:00
tvm.c tvm_vm_create(): fix possible NULL pointer dereferencing. 2017-10-28 14:00:01 +03:00
tvm_file.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_htab.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_lexer.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_memory.c Refactor with a consistent coding style 2016-08-28 20:31:12 -07:00
tvm_parser.c tvm_parse_args(): fix double free 2017-02-12 12:06:20 -08:00
tvm_preprocessor.c tvm_preprocess: update *src after (re)allocating memory 2017-02-12 11:51:06 -08:00
tvm_program.c tvm_prog_destroy(): check arg buckets before free 2017-02-12 12:01:16 -08:00