Skip to content

Instantly share code, notes, and snippets.

@hfiref0x
Created January 31, 2019 08:27
Show Gist options
  • Save hfiref0x/54936644953964fecbc483fb12a93f37 to your computer and use it in GitHub Desktop.
Save hfiref0x/54936644953964fecbc483fb12a93f37 to your computer and use it in GitHub Desktop.
transmission_log
/Build/Transmission/build/third-party/utp/src/utp/utypes.h 10 warn V677 Custom declaration of a standard 'uint' type. The declaration from system header files should be used instead.
/Build/Transmission/build/third-party/utp/src/utp/templates.h 116 warn V701 realloc() possible leak: when realloc() fails in allocating memory, original pointer 'mem' is lost. Consider assigning realloc() to a temporary pointer.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 163 err V512 A call of the 'memset' function will lead to underflow of the buffer 'sin'.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 168 warn V641 The size of the '& sa' buffer is not a multiple of the element size of the type 'sockaddr_in6'.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 378 warn V522 There might be dereferencing of a potential null pointer 'buf'. Check lines: 378, 372.
/Build/Transmission/build/third-party/utp/src/utp/templates.h 116 warn V701 Instantiation of Array < RST_Info >: realloc() possible leak: when realloc() fails in allocating memory, original pointer 'mem' is lost. Consider assigning realloc() to a temporary pointer.
/Build/Transmission/build/third-party/utp/src/utp/templates.h 116 err V630 Instantiation of Array < RST_Info >: The 'realloc' function is used to allocate memory for an array of objects which are classes containing constructors.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 1156 warn V522 There might be dereferencing of a potential null pointer 'pkt'. Check lines: 1156, 1150.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 1150 warn V701 realloc() possible leak: when realloc() fails in allocating memory, original pointer 'pkt' is lost. Consider assigning realloc() to a temporary pointer.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 1657 err V547 Expression 'target <= 0' is always false.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 1887 warn V560 A part of conditional expression is always true: conn->cur_window_packets > 0.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 1886 warn V571 Recurring check. The 'conn->cur_window_packets > 0' condition was already verified in line 1885.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2231 warn V547 Expression 'seqnr > 0x3ff' is always false.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2255 warn V522 There might be dereferencing of a potential null pointer '(uint *) mem'. Check lines: 2255, 2254.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2341 err V630 The 'calloc' function is used to allocate memory for an array of objects which are classes containing constructors.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2346 warn V522 There might be dereferencing of a potential null pointer 'conn'. Check lines: 2346, 2341.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2480 warn V522 There might be dereferencing of a potential null pointer 'pkt'. Check lines: 2480, 2478.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2579 err V547 Expression 'conn->state == CS_SYN_SENT' is always false.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2636 warn V522 There might be dereferencing of a potential null pointer 'conn'.
/Build/Transmission/build/third-party/utp/src/utp/utp.cpp 2697 err V547 Expression 'conn->state == CS_SYN_SENT' is always false.
/Build/Transmission/build/third-party/utp/src/utp/utp_utils.cpp 134 warn V1001 The 'rc' variable is assigned but is not used by the end of the function.
/Build/Transmission/build/third-party/utp/src/utp/utp_utils.cpp 140 warn V1001 The 'rc' variable is assigned but is not used by the end of the function.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 382 warn V512 A call of the 'memcmp' function will lead to underflow of the buffer 'address'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 382 warn V512 A call of the 'memcmp' function will lead to underflow of the buffer 'v4prefix'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 1328 warn V512 A call of the 'memcpy' function will lead to underflow of the buffer 'st->peers[i].ip'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 1646 warn V641 The size of the '& n->ss' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2132 warn V641 The size of the '& sin6' buffer is not a multiple of the element size of the type 'struct sockaddr'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2135 warn V641 The size of the '& sin6' buffer is not a multiple of the element size of the type 'struct sockaddr'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2400 warn V641 The size of the '& n->ss' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2412 warn V641 The size of the '& n->ss' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2673 warn V641 The size of the '& n->ss' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2672 err V547 Expression 'n->ss.ss_family == 10' is always true.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2739 warn V614 Potentially uninitialized buffer 'nodes' used. Consider checking the fifth actual argument of the 'send_nodes_peers' function.
/Build/Transmission/build/third-party/dht/src/dht/dht.c 2740 warn V614 Potentially uninitialized buffer 'nodes6' used. Consider checking the seventh actual argument of the 'send_nodes_peers' function.
/Build/Transmission/libtransmission/transmission.h 1877 warn V560 A part of conditional expression is always true: d == TR_DOWN.
/Build/Transmission/libtransmission/session.h 268 warn V560 A part of conditional expression is always true: m == TR_PREALLOCATE_FULL.
/Build/Transmission/libtransmission/session.h 273 warn V560 A part of conditional expression is always true: m == TR_ENCRYPTION_REQUIRED.
/Build/Transmission/libtransmission/announcer-udp.c 140 err V547 Expression 'action == TAU_ACTION_ERROR' is always true.
/Build/Transmission/libtransmission/clients.c 458 err V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 458, 535.
/Build/Transmission/libtransmission/clients.c 306 err V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 306, 322.
/Build/Transmission/libtransmission/clients.c 282 err V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 282, 570.
/Build/Transmission/libtransmission/clients.c 266 err V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. There is a probability of logical error presence. Check lines: 266, 503.
/Build/Transmission/libtransmission/ConvertUTF.c 263 err V547 Expression 'ch < (UTF32) 0x110000' is always true.
/Build/Transmission/libtransmission/ConvertUTF.c 315 err V547 Expression 'a < 0x80' is always false.
/Build/Transmission/libtransmission/ConvertUTF.c 305 warn V796 It is possible that 'break' statement is missing in switch statement.
/Build/Transmission/libtransmission/ConvertUTF.c 306 warn V796 It is possible that 'break' statement is missing in switch statement.
/Build/Transmission/libtransmission/crypto.c 116 err V614 Uninitialized buffer 'discard' used. Consider checking the second actual argument of the 'tr_rc4_process' function.
/Build/Transmission/libtransmission/crypto.c 141 err V614 Uninitialized buffer 'discard' used. Consider checking the second actual argument of the 'tr_rc4_process' function.
/Build/Transmission/libtransmission/file-posix.c 798 err V547 Expression 'advice == TR_SYS_FILE_ADVICE_DONT_NEED' is always true.
/Build/Transmission/libtransmission/handshake.c 317 warn V512 A call of the 'memcpy' function will lead to underflow of the buffer 'walk'.
/Build/Transmission/libtransmission/log.c 199 warn V547 Expression 'fp != (- 1)' is always true.
/Build/Transmission/libtransmission/magnet.c 57 warn V560 A part of conditional expression is always false: lookup >= base32LookupLen.
/Build/Transmission/libtransmission/metainfo.c 646 warn V547 Expression '(str = getannounce(inf, meta)) != NULL' is always false.
/Build/Transmission/libtransmission/metainfo.c 605 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 594, 605.
/Build/Transmission/libtransmission/metainfo.c 627 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 605, 627.
/Build/Transmission/build/third-party/utp/include/libutp/utypes.h 10 warn V677 Custom declaration of a standard 'uint' type. The declaration from system header files should be used instead.
/Build/Transmission/libtransmission/net.c 275 warn V512 A call of the 'memcpy' function will lead to underflow of the buffer 'sockaddr'.
/Build/Transmission/libtransmission/net.c 286 warn V512 A call of the 'memcpy' function will lead to underflow of the buffer 'sockaddr'.
/Build/Transmission/libtransmission/net.c 667 warn V641 The size of the '& sin6' buffer is not a multiple of the element size of the type 'struct sockaddr'.
/Build/Transmission/libtransmission/net.c 705 warn V641 The size of the '& ss' buffer is not a multiple of the element size of the type 'struct sockaddr_in6'.
/Build/Transmission/libtransmission/platform.c 595 warn V547 Expression 'pkg != NULL' is always true.
/Build/Transmission/libtransmission/platform.c 612 warn V560 A part of conditional expression is always true: tmp != NULL.
/Build/Transmission/libtransmission/rpcimpl.c 2090 warn V1020 The function exited without calling the 'tr_sessionSetAltSpeedEnd' function. Check lines: 2090, 1889.
/Build/Transmission/libtransmission/torrent.c 2780 err V781 The value of the 'trackerCount' variable is checked after it was used. Perhaps there is a mistake in program logic. Check lines: 2780, 2802.
/Build/Transmission/libtransmission/torrent.c 3458 warn V547 Expression 'b == NULL' is always true.
/Build/Transmission/libtransmission/tr-dht.c 611 warn V641 The size of the '& sin6' buffer is not a multiple of the element size of the type 'struct sockaddr'.
/Build/Transmission/libtransmission/tr-getopt.c 70 warn V560 A part of conditional expression is always true: shortName != NULL.
/Build/Transmission/libtransmission/tr-getopt.c 71 warn V560 A part of conditional expression is always true: longName != NULL.
/Build/Transmission/libtransmission/tr-getopt.c 108 warn V547 Expression '(arg = getArgName(o)) != NULL' is always true.
/Build/Transmission/libtransmission/tr-udp.c 175 warn V547 Expression 'ipv6 != NULL' is always true.
/Build/Transmission/libtransmission/tr-udp.c 188 warn V641 The size of the '& sin6' buffer is not a multiple of the element size of the type 'struct sockaddr'.
/Build/Transmission/libtransmission/utils.c 1799 warn V547 Expression 'buf == NULL' is always true.
/Build/Transmission/libtransmission/variant.c 291 warn V560 A part of conditional expression is always true: !success.
/Build/Transmission/libtransmission/variant.c 373 warn V560 A part of conditional expression is always true: !success.
/Build/Transmission/libtransmission/jsonsl.c 156 warn V522 There might be dereferencing of a potential null pointer 'jsn'. Check lines: 156, 152.
/Build/Transmission/libtransmission/jsonsl.c 476 warn V519 The 'jsn->expecting' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 470, 476.
/Build/Transmission/libtransmission/jsonsl.c 743 warn V575 The potential null pointer is passed into 'strcpy' function. Inspect the first argument. Check lines: 743, 742.
/Build/Transmission/libtransmission/jsonsl.c 745 warn V522 There might be dereferencing of a potential null pointer 'components'. Check lines: 745, 741.
/Build/Transmission/libtransmission/jsonsl.c 772 warn V522 There might be dereferencing of a potential null pointer 'ret'. Check lines: 772, 771.
/Build/Transmission/libtransmission/jsonsl.c 777 warn V575 The potential null pointer is passed into 'strcpy' function. Inspect the first argument. Check lines: 777, 775.
/Build/Transmission/libtransmission/jsonsl.c 873 warn V575 The potential null pointer is passed into 'memcpy' function. Inspect the first argument. Check lines: 873, 870.
/Build/Transmission/libtransmission/jsonsl.c 878 warn V522 There might be dereferencing of a potential null pointer 'firstjmp'. Check lines: 878, 872.
/Build/Transmission/libtransmission/variant-json.c 358 warn V522 There might be dereferencing of a potential null pointer 'jsn'.
/Build/Transmission/libtransmission/variant-json.c 377 warn V560 A part of conditional expression is always true: data.error == 0.
/Build/Transmission/libtransmission/variant-json.c 377 warn V560 A part of conditional expression is always true: !data.has_content.
/Build/Transmission/libtransmission/variant-json.c 666 warn V547 Expression '!emptyContainer' is always true.
/Build/Transmission/libtransmission/web.c 190 err V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'task' class object.
/Build/Transmission/libtransmission/web.c 194 err V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'task' class object.
/Build/Transmission/libtransmission/web.c 214 err V568 It's odd that 'sizeof()' operator evaluates the size of a pointer to a class, but not the size of the 'task' class object.
/Build/Transmission/libtransmission/wildmat.c 94 err V536 Be advised that the utilized constant value is represented by an octal form. Oct: 0400, Dec: 256.
/Build/Transmission/libtransmission/crypto-test.c 146 err V583 The '?:' operator, regardless of its conditional expression, always returns one and the same value: tr_ssha1(phrase).
/Build/Transmission/libtransmission/file-test.c 412 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/file-test.c 430 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/file-test.c 454 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/file-test.c 461 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/file-test.c 477 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/file-test.c 567 warn V764 Possible incorrect order of arguments passed to 'tr_sys_path_is_same' function: 'path2' and 'path1'.
/Build/Transmission/libtransmission/move-test.c 131 warn V560 A part of conditional expression is always false: completeness == completeness_unset.
/Build/Transmission/libtransmission/move-test.c 131 err V654 The condition of loop is always false.
/Build/Transmission/libtransmission/quark-test.c 37 err V1028 Possible overflow. Consider casting operands of the 'i + 1' operator to the 'tr_quark' type, not the result.
/Build/Transmission/gtk/details.c 203 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 186, 203.
/Build/Transmission/gtk/details.c 220 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 203, 220.
/Build/Transmission/gtk/details.c 237 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 220, 237.
/Build/Transmission/gtk/details.c 254 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 237, 254.
/Build/Transmission/gtk/details.c 271 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 254, 271.
/Build/Transmission/gtk/details.c 295 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 271, 295.
/Build/Transmission/gtk/details.c 316 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 295, 316.
/Build/Transmission/gtk/details.c 323 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 316, 323.
/Build/Transmission/gtk/details.c 344 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 323, 344.
/Build/Transmission/gtk/details.c 351 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 344, 351.
/Build/Transmission/gtk/details.c 1397 warn V560 A part of conditional expression is always false: client == NULL.
/Build/Transmission/gtk/details.c 1864 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1859, 1864.
/Build/Transmission/gtk/details.c 1869 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1864, 1869.
/Build/Transmission/gtk/details.c 1874 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1869, 1874.
/Build/Transmission/gtk/details.c 1879 warn V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Check lines: 1874, 1879.
/Build/Transmission/gtk/details.c 2275 err V547 Expression 'torrent_id < 0' is always true.
/Build/Transmission/gtk/details.c 2662 err V595 The 'url' pointer was utilized before it was verified against nullptr. Check lines: 2662, 2664.
/Build/Transmission/gtk/filter.c 717 warn V560 A part of conditional expression is always false: key == NULL.
/Build/Transmission/gtk/filter.c 725 warn V560 A part of conditional expression is always false: key == NULL.
/Build/Transmission/gtk/filter.c 794 err V763 Parameter 'combo' is always rewritten in function body before being used.
/Build/Transmission/gtk/filter.c 880 warn V618 It's dangerous to call the 'g_snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
/Build/Transmission/gtk/main.c 1490 warn V1004 The 'l' pointer was used unsafely after it was verified against nullptr. Check lines: 1479, 1490.
/Build/Transmission/gtk/makemeta-ui.c 53 err V597 The compiler could delete the 'memset' function call, which is used to flush 'ui' object. The memset_s() function should be used to erase the private data.
/Build/Transmission/gtk/makemeta-ui.c 82 warn V618 It's dangerous to call the 'g_strdup_printf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
/Build/Transmission/gtk/open-dialog.c 488 err V595 The 'url' pointer was utilized before it was verified against nullptr. Check lines: 488, 490.
/Build/Transmission/gtk/torrent-cell-renderer.c 718 warn V519 The 'name_area.width' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 690, 718.
/Build/Transmission/gtk/torrent-cell-renderer.c 723 warn V519 The 'prog_area.width' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 694, 723.
/Build/Transmission/gtk/torrent-cell-renderer.c 734 warn V519 The 'stat_area.width' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 698, 734.
/Build/Transmission/gtk/tr-core.c 441 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 493 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 518 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 543 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 570 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 594 err V547 Expression 'ret == 0' is always true.
/Build/Transmission/gtk/tr-core.c 1270 warn V547 Expression '!tried' is always true.
/Build/Transmission/gtk/util.c 399 warn V547 Expression '!opened' is always true.
/Build/Transmission/gtk/util.c 724 warn V618 It's dangerous to call the 'g_snprintf' function in such a manner, as the line being passed could contain format specification. The example of the safe code: printf("%s", str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment