The following issues were found
tests/import/pkg7/__init__.py
1 issues
Line: 1
Column: 1
print("pkg __name__:", __name__)
Reported by Pylint.
tests/import/pkg7/subpkg1/__init__.py
1 issues
Line: 1
Column: 1
print("pkg __name__:", __name__)
Reported by Pylint.
tests/import/pkg7/subpkg1/subpkg2/__init__.py
1 issues
Line: 1
Column: 1
print("pkg __name__:", __name__)
Reported by Pylint.
tests/import/pkg8/mod.py
1 issues
Line: 1
Column: 1
print("foo")
Reported by Pylint.
ports/stm32/dac.c
1 issues
Line: 327
CWE codes:
908
pyb_dac_obj_t *dac = &pyb_dac_obj[dac_id - 1];
dac->base.type = &pyb_dac_type;
dac->dac_channel = dac_channel;
if (dac->bits == 0 || n_args > 1 || n_kw > 0) {
// configure the peripheral
mp_map_t kw_args;
mp_map_init_fixed_table(&kw_args, n_kw, args + n_args);
Reported by Cppcheck.
tests/basics/string_endswith.py
1 issues
Line: 1
Column: 1
print("foobar".endswith("bar"))
print("foobar".endswith("baR"))
print("foobar".endswith("bar1"))
print("foobar".endswith("foobar"))
print("foobar".endswith(""))
print("foobar".endswith("foobarbaz"))
#print("1foobar".startswith("foo", 1))
#print("1foo".startswith("foo", 1))
Reported by Pylint.
tests/basics/string_crlf_conversion.py
1 issues
Line: 1
Column: 1
# this file has CRLF line endings to test lexer's conversion of them to LF
# in triple quoted strings
print(repr("""abc
def"""))
Reported by Pylint.
ports/samd/samd_isr.c
1 issues
Line: 50
CWE codes:
570
*dest++ = *src++;
}
// Zero out .bss section
for (uint32_t *dest = &_sbss; dest < &_ebss;) {
*dest++ = 0;
}
// When we get here: stack is initialised, bss is clear, data is copied
Reported by Cppcheck.
tests/basics/bytes_compare3.py
1 issues
Line: 1
Column: 1
# Based on MicroPython config option, comparison of str and bytes
# or vice versa may issue a runtime warning. On CPython, if run as
# "python3 -b", only comparison of str to bytes issues a warning,
# not the other way around (while exactly comparison of bytes to
# str would be the most common error, as in sock.recv(3) == "GET").
# Update: the issue above with CPython apparently happens in REPL,
# when run as a script, both lines issue a warning.
print("123" == b"123")
print(b"123" == "123")
Reported by Pylint.
ports/samd/main.c
1 issues
Line: 39
CWE codes:
570
void samd_main(void) {
mp_stack_set_top(&_estack);
mp_stack_set_limit(&_estack - &_sstack - 1024);
for (;;) {
gc_init(&_sheap, &_eheap);
mp_init();
mp_obj_list_init(MP_OBJ_TO_PTR(mp_sys_path), 0);
Reported by Cppcheck.