The following issues were found

ports/rp2/rp2_pio.c
1 issues
Uninitialized variable: value
Error

Line: 712 CWE codes: 908

                          mp_handle_pending(true);
            MICROPY_HW_USBDEV_TASK_HOOK
        }
        pio_sm_put(self->pio, self->sm, value << shift);
    }
    return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(rp2_state_machine_put_obj, 2, 3, rp2_state_machine_put);


            

Reported by Cppcheck.

ports/rp2/mpthreadport.c
1 issues
Subtracting pointers that point to different objects
Error

Line: 62 CWE codes: 570

                      }
    } else {
        // GC running on core1, trace core0's stack.
        gc_collect_root((void **)&__StackBottom, (&__StackTop - &__StackBottom) / sizeof(uintptr_t));
    }
}

STATIC void core1_entry_wrapper(void) {
    if (core1_entry) {

            

Reported by Cppcheck.

tests/basics/break.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              while True:
    break

for i in range(4):
    print('one', i)
    if i > 2:
        break
    print('two', i)


            

Reported by Pylint.

tests/basics/builtin_abs.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test builtin abs

print(abs(False))
print(abs(True))
print(abs(1))
print(abs(-1))

            

Reported by Pylint.

ports/rp2/main.c
1 issues
Subtracting pointers that point to different objects
Error

Line: 93 CWE codes: 570

              
    // Initialise stack extents and GC heap.
    mp_stack_set_top(&__StackTop);
    mp_stack_set_limit(&__StackTop - &__StackBottom - 256);
    gc_init(&gc_heap[0], &gc_heap[MP_ARRAY_SIZE(gc_heap)]);

    for (;;) {

        // Initialise MicroPython runtime.

            

Reported by Cppcheck.

tests/basics/slice_intbig.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test slicing when arguments are bignums

print(list(range(10))[(1<<66)>>65:])
print(list(range(10))[:(1<<66)>>65])
print(list(range(10))[::(1<<66)>>65])

            

Reported by Pylint.

tests/basics/bytes_compare2.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              print(b"1" == 1)

            

Reported by Pylint.

tests/basics/set_update.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              s = {1}
s.update()
print(s)
s.update([2])
print(sorted(s))
s.update([1,3], [2,2,4])
print(sorted(s))

            

Reported by Pylint.

tests/basics/set_unop.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test set unary operations

print(bool(set()))
print(bool(set('abc')))

print(len(set()))
print(len(set('abc')))

try:

            

Reported by Pylint.

tests/basics/set_union.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              print(sorted({1}.union({2})))

            

Reported by Pylint.