34 listInit(&state.events, 0);CID 647297: Concurrent data access violations (MISSING_LOCK) >>> Accessing "state.events" without holding lock "ciokey_state.mutex". Elsewhere, "ciokey_state.events" is written to with "ciokey_state.mutex" held 6 out of 8 times.
747 FULLPATH(path, prefix, MAX_PATH);CID 648908: Resource leaks (RESOURCE_LEAK)
Ignoring storage allocated by "_fullpath(path, prefix, 4096UL)" leaks it.
2844 if (sendsocket(spy_socket[sbbs->cfg.node_num - 1], (char*)buf + bufbot, i) != i && SOCKET_ERRNO != EPIPE)CID 651667: (INTEGER_OVERFLOW)
"i", which might have underflowed, is passed to "send(spy_socket[sbbs->cfg.node_num - 1], (char *)buf + bufbot, i, 0)".
2806 i = sendsocket(sbbs->client_socket, (char*)buf + bufbot, sendbytes);CID 651667: (INTEGER_OVERFLOW)
"sendbytes", which might have underflowed, is passed to "send(sbbs->client_socket.operator std::__atomic_base<int>::__int_type(), (char *)buf + bufbot, sendbytes, 0)".
109 bprintf(text[UserDates]CID 651709: Resource leaks (RESOURCE_LEAK)
Variable "find_expr" going out of scope leaks the storage it points to. 108 return;
167 user.number = l & ~0x80000000L;CID 652885: Integer handling issues (INTEGER_OVERFLOW)
Expression "user.number", where "l & 0xffffffff7fffffffL" is known to be equal to -2147483649, overflows the type of "user.number", which is type "int".
214 ssize_t rd = read(file, buf + got, bufsize - got);CID 653403: Insecure data handling (INTEGER_OVERFLOW)
"64000UL - got", which might have underflowed, is passed to "read(file, buf + got, 64000UL - got)".
1223 remove(str);CID 654570: (CHECKED_RETURN)
Calling "remove(str)" without checking return value. This library function may fail and return an error code.
1213 remove(str);CID 654570: (CHECKED_RETURN)
Calling "remove(str)" without checking return value. This library function may fail and return an error code.
101 if (at == count || lengths[at] < 2)CID 654569: Memory - illegal accesses (OVERRUN)
Overrunning array "lengths" of 32 8-byte elements at element index 32 (byte offset 263) using index "at" (which evaluates to 32).
1925 }CID 654568: (RESOURCE_LEAK)
Handle variable "fd" going out of scope leaks the handle.
1925 }CID 654568: (RESOURCE_LEAK)
Handle variable "fd" going out of scope leaks the handle.
501 cio_api.mode=fullscreen?CIOLIB_MODE_SDL_FULLSCREEN:CIOLIB_MODE_SDL;CID 655740: Concurrent data access violations (MISSING_LOCK) >>> Accessing "fullscreen" without holding lock "win_mutex". Elsewhere, "fullscreen" is written to with "win_mutex" held 3 out of 3 times (3 of these accesses strongly imply that it is necessary).
2782 GCESSTR(err, node, sbbs->ssh_session, "pushing data");CID 655739: (ATOMICITY)
Using an unreliable value of "GCES_level" inside the second locked section. If the data that "GCES_level" depends on was changed by another thread, this use might be incorrect.
2764 GCESSTR(err, node, sbbs->ssh_session, "setting channel");CID 655739: (ATOMICITY)
Using an unreliable value of "GCES_level" inside the second locked section. If the data that "GCES_level" depends on was changed by another thread, this use might be incorrect.
4542 iniSetUInteger(&ini, ROOT_SECTION, "done", (uint)*done, NULL);CID 656168: High impact quality (Y2K38_SAFETY)
A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "*done" is cast to "uint".
1530 fcntl(sv[0], F_SETFD, FD_CLOEXEC); /* our end isn't the command's */CID 656507: Error handling issues (CHECKED_RETURN)
Calling "fcntl(sv[0], 2, 1)" without checking return value. This library function may fail and return an error code.
2622 JS_SetElement(session->js_cx, keyarray, alen, &val); 2623 }CID 656690: Error handling issues (CHECKED_RETURN)
Calling "JS_SetElement" without checking return value (as is done elsewhere 32 out of 40 times).
1190 strlcat(keys, extra_keys, size);CID 656689: Error handling issues (CHECKED_RETURN)
Calling "strlcat" without checking return value (as is done elsewhere 29 out of 31 times).
93 return JS_NewStringCopyN(cx, &key, key == 0 ? 0 : 1);CID 656688: Memory - corruptions (ARRAY_VS_SINGLETON)
Passing "&key" to function "JS_NewStringCopyN" which uses it as an array. This might corrupt or misinterpret adjacent memory locations.
456 remove(path);CID 656687: (CHECKED_RETURN)
Calling "remove(path)" without checking return value. This library function may fail and return an error code.
417 remove(path);CID 656687: (CHECKED_RETURN)
Calling "remove(path)" without checking return value. This library function may fail and return an error code.
2584 JS_SetElement(session->js_cx, keyarray, alen, &val); 2585 }CID 656686: Error handling issues (CHECKED_RETURN)
Calling "JS_SetElement" without checking return value (as is done elsewhere 32 out of 40 times).
114 fexistcase(str);CID 661079: Error handling issues (CHECKED_RETURN)
Calling "fexistcase" without checking return value (as is done elsewhere 126 out of 136 times).
628 , (uint)elapsedCID 661078: (Y2K38_SAFETY)
A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "elapsed" is cast to "uint".
146 errormsg(WHERE, ERR_CHK, "time", (uint)now); 147 return false;CID 661078: (Y2K38_SAFETY)
A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "this->now" is cast to "uint".
623 , (uint)elapsedCID 661078: (Y2K38_SAFETY)
A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "elapsed" is cast to "uint".
217 } else if (stat(fm->name, &name_st) != 0) {CID 661077: Security best practices violations (TOCTOU)
Calling function "stat" to perform check on "fm->name".
412 remove(tmppath);CID 661076: (CHECKED_RETURN)
Calling "remove(tmppath)" without checking return value. This library function may fail and return an error code.
397 remove(tmppath);CID 661076: (CHECKED_RETURN)
Calling "remove(tmppath)" without checking return value. This library function may fail and return an error code.
798 cmdstr(temp_cmd(ex), packet, path, NULL, ex);CID 661075: Incorrect expression (EVALUATION_ORDER)
In argument #1 of "this->cmdstr(this->temp_cmd(ex), packet, path, NULL, ex)", a call is made to "this->temp_cmd(ex)". In argument #1 of this function, the object "ex" is modified. This object is also used in "ex", the argument #5 of the outer function call. The order in which these arguments are evaluated is not specified, and will vary between platforms.
660 remove(str);CID 661198: Error handling issues (CHECKED_RETURN)
Calling "remove(str)" without checking return value. This library function may fail and return an error code.
1982 ssize_t rd = read(file, buf + got, want - got);CID 661197: Insecure data handling (INTEGER_OVERFLOW)
"want - got", which might have underflowed, is passed to "read(file, buf + got, want - got)".
374 SOCKET sock = p->tls_pending->sock;CID 661304: Concurrent data access violations (MISSING_LOCK) >>> Accessing "p->tls_pending->sock" without holding lock "js_socket_tls_pending.mutex". Elsewhere, "js_socket_tls_pending.sock" is written to with "js_socket_tls_pending.mutex" held 1 out of 1 times.
1992 ssize_t rd = read(file, buf + got, want - got);CID 661303: Insecure data handling (INTEGER_OVERFLOW)
"want - got", which might have underflowed, is passed to "read(file, buf + got, want - got)".
2648 send(pending->notify, "x", 1, 0);CID 661302: Error handling issues (CHECKED_RETURN)
Calling "send(pending->notify, "x", 1UL, 0)" without checking return value. This library function may fail and return an error code.
2636 status = add_private_key(pending->cfg, pending->logger, pending->session);CID 661301: Concurrent data access violations (MISSING_LOCK) >>> Accessing "pending->session" without holding lock "js_socket_tls_pending.mutex". Elsewhere, "js_socket_tls_pending.session" is written to with "js_socket_tls_pending.mutex" held 1 out of 1 times.
1996 }CID 661497: (RESOURCE_LEAK)
Handle variable "fd" going out of scope leaks the handle.
1996 }CID 661497: (RESOURCE_LEAK)
Handle variable "fd" going out of scope leaks the handle.
1369 remove(str);CID 661496: (CHECKED_RETURN)
Calling "remove(str)" without checking return value. This library function may fail and return an error code.
1359 remove(str);CID 661496: (CHECKED_RETURN)
Calling "remove(str)" without checking return value. This library function may fail and return an error code.
1168 int rd = recv(event->data.connect.sv[0], (char *)&result + received, sizeof result - received, 0);CID 661670: Insecure data handling (INTEGER_OVERFLOW)
"8UL - received", which might have underflowed, is passed to "recv(event->data.connect.sv[0], (char *)&result + received, 8UL - received, 0)".
656 free(buf);CID 661775: Insecure data handling (TAINTED_SCALAR)
Passing tainted expression "*buf" to "sof", which uses it as an offset. 655 sof(siffile, buf, length);
69 f->hdr.when_written.time = (uint32_t)fdate(path);CID 662148: High impact quality (Y2K38_SAFETY)
A "time_t" value is stored in an integer with too few bits to accommodate it. The expression "fdate(path)" is cast to "uint32_t".
2457 fseeko(p->fp, (off_t)pos, SEEK_SET); 2458 JS_RESUMEREQUEST(cx, rc);CID 662206: Error handling issues (CHECKED_RETURN)
Calling "fseeko(p->fp, (off_t)pos, 0)" without checking return value. This library function may fail and return an error code.
553 return allocerr(error, maxerrlen, fname, "domain list", sizeof(char*));CID 662403: Incorrect expression (SIZEOF_MISMATCH)
Passing argument "error" of type "char *" and argument "8UL /* sizeof (char *) */" to function "allocerr" is suspicious.
194 return i;Variable "newmsg" going out of scope leaks the storage "newmsg.hfield_dat" points to.
6955 parse_js_headers(session);CID 662428: Null pointer dereferences (FORWARD_NULL)
Passing "session" to "parse_js_headers", which dereferences null "session->js_cookie".
194 return i;Variable "newmsg" going out of scope leaks the storage "newmsg.dfield" points to.
151 if (d == fieldsCID 662426: Insecure data handling (INTEGER_OVERFLOW)
The cast of "(off_t)list[i].offset + 70UL + d * 10UL" to a signed type could result in a negative number.
923 return;CID 662425: Resource leaks (RESOURCE_LEAK)
Handle variable "fido" going out of scope leaks the handle.
6947 js_parse_query(session, session->req.query_str);CID 662424: (FORWARD_NULL)
Passing "session" to "js_parse_query", which dereferences null "session->js_query".
6952 js_parse_query(session, session->req.post_data);CID 662424: (FORWARD_NULL)
Passing "session" to "js_parse_query", which dereferences null "session->js_query".
194 return i;Variable "newmsg" going out of scope leaks the storage "newmsg.hfield" points to.
339 loaded.push_back(r);CID 662422: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) >>> "r" is copied and then passed-by-reference as parameter to STL insertion function "std::vector<webBlock::rule, std::allocator<webBlock::rule> >::push_back(std::vector<webBlock::rule, std::allocator<webBlock::rule> >::value_type const &)", when it could be moved instead.
146 for (d = 0; d < hdr.total_dfields; d++) {CID 662421: Insecure data handling (TAINTED_SCALAR)
Using tainted variable "hdr.total_dfields" as a loop boundary.
3057 addrs.push_back(addr);CID 662420: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) >>> "addr" is copied and then passed-by-reference as parameter to STL insertion function "std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::push_back(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::value_type const &)", when it could be moved instead.
| Sysop: | Hoppy |
|---|---|
| Location: | Sydney, AU |
| Users: | 8 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 777:05:45 |
| Calls: | 34 |
| Files: | 6,999 |
| D/L today: |
66 files (11,005K bytes) |
| Messages: | 15,487 |