Skip to content

Instantly share code, notes, and snippets.

@Tookmund
Created May 16, 2015 22:48
Show Gist options
  • Save Tookmund/79e73bc78a61426d9e33 to your computer and use it in GitHub Desktop.
Save Tookmund/79e73bc78a61426d9e33 to your computer and use it in GitHub Desktop.
Minix cppcheck
[minix/benchmarks/unixbench-5.1.2/src/big.c:110]: (error) Return value of allocation function freopen is not used.
[minix/benchmarks/unixbench-5.1.2/src/big.c:198]: (error) Return value of allocation function freopen is not used.
[minix/benchmarks/unixbench-5.1.2/src/big.c:226]: (error) Return value of allocation function freopen is not used.
[minix/commands/at/at.c:168]: (error) Resource leak: fp
[minix/commands/cawf/regexp.c:238]: (error) Memory leak: r
[minix/commands/cawf/regexp.c:1208]: (error) Pointer to local array variable returned.
[minix/commands/ci/ci.c:283]: (error) Uninitialized variable: dirname
[minix/commands/ci/ci.c:285]: (error) Uninitialized variable: dirname
[minix/commands/ci/ci.c:286]: (error) Uninitialized variable: dirname
[minix/commands/cleantmp/cleantmp.c:102]: (error) Common realloc mistake: 'path' nulled but not freed upon failure
[minix/commands/co/co.c:152]: (error) Uninitialized variable: dirname
[minix/commands/co/co.c:154]: (error) Uninitialized variable: dirname
[minix/commands/co/co.c:155]: (error) Uninitialized variable: dirname
[minix/commands/crontab/crontab.c:252]: (error) Resource leak: fp
[minix/commands/devmand/main.c:734]: (error) Memory leak: drv_inst
[minix/commands/fix/fix.c:114]: (error) Resource leak: fpf
[minix/commands/look/look.c:126]: (error) Resource leak: f
[minix/commands/mail/mail.c:655]: (error) Resource leak: tempfp
[minix/commands/mail/mail.c:765]: (error) Resource leak: fp
[minix/commands/playwave/playwave.c:233]: (error) Memory leak: buffer
[minix/commands/profile/profile.c:156]: (warning) %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/profile/profile.c:161]: (warning) %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/ps/ps.c:399]: (warning) %u in format string (no. 4) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/ps/ps.c:399]: (warning) %u in format string (no. 5) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/ps/ps.c:399]: (warning) %u in format string (no. 6) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/ps/ps.c:399]: (warning) %u in format string (no. 9) requires 'unsigned int *' but the argument type is 'int *'.
[minix/commands/rawspeed/rawspeed.c:272]: (error) Memory leak: chunk
[minix/commands/remsync/remsync.c:1121]: (error) Dereferencing 'remote' after it is deallocated / released
[minix/commands/slip/slip.c:281]: (error) va_list 'ap' was opened but not closed by va_end().
[minix/commands/swifi/fault_model.c:542]: (error) Invalid number of character ({) when these macros are defined: 'CONFIG_SWIFI;notdef'.
[minix/commands/telnet/ttn.c:363]: (error) Uninitialized variable: iac
[minix/commands/telnet/ttn.c:365]: (error) Uninitialized variable: command
[minix/commands/telnet/ttn.c:610]: (error) Uninitialized variable: command
[minix/commands/writeisofs/writeisofs.c:1189]: (error) Memory leak: appendsectorinfo
[minix/commands/zmodem/zm.c:438] -> [minix/commands/zmodem/zm.c:437]: (warning) Array 'frametypes[24]' accessed at index 25, which is out of bounds. Otherwise condition 'c<=22' is redundant.
[minix/commands/zmodem/rz.c:1095]: (error) Allocation with fopen, if doesn't release it.
[minix/kernel/debug.c:254]: (error) printf format string requires 13 parameters but only 12 are given.
[minix/kernel/system.c:377]: (error) Uninitialized variable: priv
[minix/kernel/utility.c:49]: (error) va_list 'arg' was opened but not closed by va_end().
[minix/lib/libddekit/src/pci.c:147]: (error) Possible null pointer dereference: ret
[minix/lib/libfetch/common.c:606]: (error) Common realloc mistake: 'tmp' nulled but not freed upon failure
[minix/lib/liblwip/core/ipv4/igmp.c:801]: (error) Possible null pointer dereference: igmp
[minix/lib/liblwip/core/ipv4/igmp.c:395]: (error) Uninitialized variable: igmp
[minix/lib/liblwip/core/ipv4/igmp.c:400]: (error) Uninitialized variable: igmp
[minix/lib/libmthread/misc.c:42]: (error) Possible null pointer dereference: sf
[minix/lib/libmthread/misc.c:32]: (error) Possible null pointer dereference: sf
[minix/net/inet/generic/tcp_send.c:1334]: (error) Array 'tcp_fd.tf_listenq[5]' accessed at index 5, which is out of bounds.
[minix/net/inet/queryparam.c:31]: (error) Invalid number of character ({) when these macros are defined: 'EXAMPLE'.
[minix/servers/vm/pagetable.c:483]: (error) Invalid number of character ({) when these macros are defined: ''.
[minix/servers/vm/pagetable.c:483]: (error) Invalid number of character ({) when these macros are defined: 'AVL_PRIVATE'.
[minix/servers/vm/pagetable.c:483]: (error) Invalid number of character ({) when these macros are defined: 'AVL_SIZE'.
[minix/servers/vm/pagetable.c:483]: (error) Invalid number of character ({) when these macros are defined: 'CONFIG_SMP'.
[minix/servers/vm/pagetable.c:483]: (error) Invalid number of character ({) when these macros are defined: '_MAIN'.
[minix/servers/vm/pagetable.c:1087] -> [minix/servers/vm/pagetable.c:1086]: (warning) Array 'sparepagedirs[1]' accessed at index 1, which is out of bounds. Otherwise condition 's>=1' is redundant.
[minix/tests/ipc/lib/libipc.c:184]: (error) Memory leak: ent
[minix/tests/ipc/lib/tst_tmpdir.c:155]: (error) Uninitialized variable: template
[minix/tests/ipc/lib/tst_tmpdir.c:157]: (error) Uninitialized variable: template
[minix/tests/ipc/shmctl/shmctl02.c:120] -> [minix/tests/ipc/shmctl/shmctl02.c:134]: (warning) Array 'TC[5]' accessed at index 5, which is out of bounds. Otherwise condition 'i>=5' is redundant.
[minix/tests/ipc/shmctl/shmctl02.c:129] -> [minix/tests/ipc/shmctl/shmctl02.c:134]: (warning) Array 'TC[5]' accessed at index 5, which is out of bounds. Otherwise condition 'i>=5' is redundant.
[minix/tests/test15.c:182]: (error) Buffer is accessed out of bounds: one
[minix/tests/test15.c:186]: (error) Buffer is accessed out of bounds: one
[minix/tests/test15.c:192]: (error) Buffer is accessed out of bounds: one
[minix/tests/test15.c:197]: (error) Buffer is accessed out of bounds: one
[minix/tests/test15.c:200]: (error) Buffer is accessed out of bounds: one
[minix/tests/test15.c:203]: (error) Buffer is accessed out of bounds: one
[minix/tests/test46.c:214]: (error) Memory leak: grouplist
[minix/tests/test51.c:192]: (error) Memory leak: big_stack
[minix/usr.bin/top/top.c:156]: (warning) %u in format string (no. 2) requires 'unsigned int *' but the argument type is 'int *'.
[minix/usr.bin/w/minix_proc.c:101]: (error) Common realloc mistake: 'pids' nulled but not freed upon failure
(information) Too many #ifdef configurations - cppcheck only checks 12 configurations. Use --force to check all configurations. For more details, use --enable=information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment