1186 if (session->socket == INVALID_SOCKET)CID 644193: Memory - corruptions (REVERSE_NEGATIVE)
You might be using variable "session->socket" before verifying that it is >= 0.
422 return JS_TRUE;CID 644273: Resource leaks (RESOURCE_LEAK)
Variable "sval" going out of scope leaks the storage it points to.
61 uselect_items.push_back(item);CID 644272: Performance inefficiencies (COPY_INSTEAD_OF_MOVE) >>> "item" is copied and then passed-by-reference as parameter to STL insertion function "std::vector<sbbs_t::uselect_item, std::allocator<sbbs_t::uselect_item> >::push_back(std::vector<sbbs_t::uselect_item, std::allocator<sbbs_t::uselect_item> >::value_type const &)", when it could be moved instead.
5548 client_socket = INVALID_SOCKET;Assigning value "-1" to "client_socket" here, but that stored value is overwritten before it can be used.
837 idx = (idxrec_t*)(idxbuf + (m * idxreclen));CID 644892: Resource leaks (RESOURCE_LEAK)
Variable "idxbuf" going out of scope leaks the storage it points to. 836 return;
1139 vstat.vmem->changed = true;CID 644904: Concurrent data access violations (MISSING_LOCK) >>> Accessing "vstat.vmem->changed" without holding lock "vstat_chlock". Elsewhere, "vstat_vmem.changed" is written to with "vstat_chlock" held 7 out of 8 times (6 of these accesses strongly imply that it is necessary).
861 screena.update_pixels = 1;CID 644903: Concurrent data access violations (MISSING_LOCK) >>> Accessing "screena.update_pixels" without holding lock "screenlock". Elsewhere, "bitmap_screen.update_pixels" is written to with "screenlock" held 18 out of 24 times.
988 screena.update_pixels = true;CID 644905: Concurrent data access violations (MISSING_LOCK) >>> Accessing "screena.update_pixels" without holding lock "screenlock". Elsewhere, "bitmap_screen.update_pixels" is written to with "screenlock" held 18 out of 24 times.
462 return csrc;CID 644927: (RESOURCE_LEAK)
Variable "nt" going out of scope leaks the storage it points to.
462 return csrc;CID 644927: (RESOURCE_LEAK)
Variable "nt" going out of scope leaks the storage it points to.
462 return csrc;CID 644927: (RESOURCE_LEAK)
Variable "nt" going out of scope leaks the storage it points to.
462 return csrc;CID 644927: (RESOURCE_LEAK)
Variable "nt" going out of scope leaks the storage it points to.
462 return csrc;CID 644927: (RESOURCE_LEAK)
Variable "nt" going out of scope leaks the storage it points to.
1136 ssize_t rv = write(fd, wl_copybuf + sent, len - sent);CID 645010: Insecure data handling (INTEGER_OVERFLOW)
"len - sent", which might have underflowed, is passed to "write(fd, wl_copybuf + sent, len - sent)".
1459 int rv = read(wl_local_pipe[0], buf + got, sizeof(*lev) - got);CID 645009: Insecure data handling (INTEGER_OVERFLOW)
"96UL - got", which might have underflowed, is passed to "read(wl_local_pipe[0], buf + got, 96UL - got)".
243 if (wl_copybuf) {CID 645008: Concurrent data access violations (MISSING_LOCK) >>> Accessing "wl_copybuf" without holding lock "wl_copybuf_mutex". Elsewhere, "wl_copybuf" is written to with "wl_copybuf_mutex" held 2 out of 2 times.
2754CID 645007: Program hangs (SLEEP)
Call to "hyperlink_gc" might sleep while holding lock "hyperlink_mutex".
2702 strcat(sgrbuf, params++ ? ";1" : "1");CID 645069: Control flow issues (DEADCODE)
Execution cannot reach the expression "";1"" inside this statement: "strcat(sgrbuf, (params++ ? ...".
| Sysop: | Kurisu |
|---|---|
| Location: | Memphis, TN |
| Users: | 7 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 22:48:01 |
| Calls: | 35 |
| Files: | 12 |
| D/L today: |
6 files (8,415K bytes) |
| Messages: | 18,456 |