The following issues were found

src/third_party/variant-1.4.0/support/wandbox.py
1 issues
Missing parentheses in call to 'print'. Did you mean print(response['url'])? (<unknown>, line 100)
Error

Line: 100 Column: 16

                  })

    if response['status'] == '0':
        print response['url']
        return 0
    else:
        print response
        return 1


            

Reported by Pylint.

src/third_party/unwind/dist/tests/Ltest-nocalloc.c
1 issues
fprintf - If format strings can be influenced by an attacker, they can be exploited
Security

Line: 34 Column: 4 CWE codes: 134
Suggestion: Use a constant for the format specification

              #include <pthread.h>

#define panic(args...)				\
	{ fprintf (stderr, args); exit (-1); }

int num_mallocs;
int num_callocs;
int in_unwind;


            

Reported by FlawFinder.

src/third_party/unwind/dist/tests/x64-unwind-badjmp-signal-frame.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 56 Column: 3 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

                int test_status = 0;
  unw_cursor_t cursor; unw_context_t uc;
  unw_word_t ip, sp, offset;
  char name[1000];
  int found_signal_frame = 0;
  int i = 0;
  char *names[] = {
    "",
    "main",

            

Reported by FlawFinder.

src/third_party/wiredtiger/bench/workgen/workgen.h
1 issues
read - Check buffer boundaries if used in a loop including recursive loops
Security

Line: 133 Column: 11 CWE codes: 120 20

                  Track checkpoint;
    Track insert;
    Track not_found;
    Track read;
    Track remove;
    Track update;
    Track truncate;

    Stats(bool latency = false);

            

Reported by FlawFinder.

src/third_party/wiredtiger/test/packing/packing-test.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 35 Column: 5 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

              check(const char *fmt, ...)
{
    size_t len;
    char buf[200], *end, *p;
    va_list ap;

    len = 0; /* -Werror=maybe-uninitialized */

    va_start(ap, fmt);

            

Reported by FlawFinder.

src/third_party/wiredtiger/test/format/config_compat.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 213 Column: 12 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

              void
config_compat(const char **origp)
{
    static char conv[100];
    const char *equalp, *orig, **p;

    orig = *origp;
    if ((equalp = strchr(orig, '=')) == NULL)
        return;

            

Reported by FlawFinder.

src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/__init__.py
1 issues
Line too long (114/100)
Error

Line: 30 Column: 1

              # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "src/engine/SCons/__init__.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"

__version__ = "3.1.2"

__build__ = "bee7caf9defd6e108fc2998a2520ddb36a967691"


            

Reported by Pylint.

src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/__main__.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              import SCons.Script
# this does all the work, and calls sys.exit
# with the proper exit status when done.
SCons.Script.main()

            

Reported by Pylint.

src/third_party/wiredtiger/test/format/alter.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 42 Column: 5 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

                  WT_DECL_RET;
    WT_SESSION *session;
    u_int period;
    char buf[32];
    bool access_value;

    (void)(arg);
    conn = g.wts_conn;


            

Reported by FlawFinder.

src/third_party/wiredtiger/test/csuite/wt4803_history_store_abort/main.c
1 issues
char - Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues
Security

Line: 83 Column: 5 CWE codes: 119 120
Suggestion: Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length

                  WT_CURSOR *cursor;
    WT_SESSION *other_session, *session;
    int i;
    char buf[WT_MEGABYTE], open_config[128];

    testutil_check(__wt_snprintf(open_config, sizeof(open_config),
      "create,cache_size=50MB,history_store=(file_max=%s)", hs_file_max));

    testutil_check(wiredtiger_open(opts->home, &event_handler, open_config, &opts->conn));

            

Reported by FlawFinder.