No description
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. |
||
|---|---|---|
| bin | ||
| include/tvm | ||
| lib | ||
| libtvm | ||
| mlibc@abfeae4b1a | ||
| programs | ||
| src | ||
| tdb | ||
| .gitignore | ||
| .gitmodules | ||
| GNUmakefile | ||
| LICENSE | ||
| README | ||
| SYNTAX | ||
| TODO | ||
TinyVM is a virtual machine with the goal of having a small footprint. Low memory usage, a small amount of code, and a small binary. Building can be accomplished on UNIX-like systems with make and GCC. There are no external dependencies, save the C standard library. Building can be accomplished using "make," or "make rebuild". To build a debug version, add "DEBUG=yes" after "make". To build a binary with profiling enabled, add "PROFILE=yes" after "make". I can be reached at "joseph.kogut(at)gmail.com"