Hacker GitHub

← All repos

jakogut/tinyvm

View on GitHub ↗ ★ 3,330 C

TinyVM is a small, fast, lightweight virtual machine written in pure ANSI C.

10 mentions on Hacker News by 9 people: 3 stories, 7 comments · first 2011-07-02 · latest 2018-03-18

Mentions per year 10 mentions · busiest year 2011 (6)
20082026
  1. Here's the switch statement, if you're looking for it: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv...
  2. I'm kind of worried about usage of strcmp here: https://github.com/jakogut/tinyvm/search?q=strcmp It's also very easy to crash the thing, either with a malformed input file or afl-fuzz. Are you sure C was the right choice here?
  3. I’ve found that switch fast, in a few clicks, reading this on my phone: https://github.com/jakogut/tinyvm/blob/master/include/tvm/tv... I’ve used the info you provided as the start, of course.
  4. …with around, say, 2^5 instructions. What I have in mind here is something like TinyVM [1]. [1] https://github.com/GenTiradentes/tinyvm
    comment by javert · 2011-09-05 · in The Immutable Laws of Computer Security
  5. …direct, and in the second, you seem to be assuming that JMP is indirect. It appears to be direct: https://github.com/GenTiradentes/tinyvm/blob/master/tvm.c#L5... You could, of course, do it with self-modifying code if that's possible. (I'm…
  6. …in half an hour of looking at the code, I found seven bugs in a single 60-line routine. Details at: https://github.com/GenTiradentes/tinyvm/commit/e78c192313c35...
  7. check the commit message: https://github.com/GenTiradentes/tinyvm/commit/35c2fdbdabc63...