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.
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).
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.
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);
| Sysop: | Mojo |
|---|---|
| Location: | Jasckson, Michigan |
| Users: | 10 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 498471:10:25 |
| Calls: | 100 |
| Calls today: | 1 |
| Files: | 10,063 |
| D/L today: |
7 files (90K bytes) |
| Messages: | 25,972 |