civ 0.1.0-1
C passes a computed identifier to system()Compares byte buffers with memcmp
SHA-25639f4b05218c83eed99cbd094f5f8526a0d99accec6215392a890416ae8510465
MaleculeH₂(DbPo₂)
Evidence
30:10… ("!!! C backtrace [fb.err='%.*s']:\n", Dat_fmt(civ.fb->err));
31 char syscom[256];
32 for(int i=0; i < t->trace.len; i++) {
33 eprintf("#%d %-50s ", i, t->messages[i]);
34 if(ARGV) {
35 sprintf(syscom,"addr2line %p -e %s", t->trace.dat[i], ARGV[0]);
36 system(syscom);
37 } else {
38 eprintf("(set APP_NAME=argv[0] for stack trace)\n");
39 }
40 }
⋯8 lines
138:15… len < 255, "UFile path len >= 255");
139 uint8_t pathname[256];
140 memcpy(pathname, path.dat, path.len);
141 pathname[path.len] = 0;
142 int fd = UFile_handleErr(this, open(pathname, O_NONBLOCK | options, …
7:35…
8
9 assert(sizeof("hello") == 6); // 1 byte for null terminator
10 static const char s0[1 + sizeof("hello")] = "\x05" "hello";
11 assert(5 == s0[0]);
12 CStr_ntVar(s1, "\x07", "goodbye");
⋯8 lines
127 TASSERT_EQ(0, r.head); TASSERT_EQ(5, r.tail);
128 TASSERT_EQ(0, memcmp(dat, "abcde", 5));
129 TASSERT_EQ('e', Ring_get(&r, 4));
130
131 assert(dat == Ring_next(&r));
132 TASSERT_EQ(1, r.head); TASSERT_EQ(5, …
133:26… lc s) {
134 ASSERT(b->cap >= b->len + s.len, "Buf extend OOB");
135 memcpy(b->dat + b->len, s.dat, s.len);
136 b->len += s.len;
137}
⋯4 lines
No evidence locations were recorded for this file. Raw result