zephyr/scripts
Himanshu Jha 58781d5782 coccinelle: Add script to check legal usage of sizeof expression
sizeof when applied to a pointer typed expression gives the size of
the pointer and not the size of the object associated with the pointer
expression leading to errors.

This scripts checks for inconsistencies where sizeof is incorrectly
used, especially while calculating size of memory to be allocated in
memory allocating functions.

Eg:

-	memset(pStr, 0, sizeof(pStr));
+	memset(pStr, 0, sizeof(*pStr));

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
2018-11-07 10:34:24 -05:00
..
checkpatch scripts: cleanup scripts directory 2018-04-03 09:28:09 -04:00
ci scripts: ci: Set SOC_DIR for check-compliance.py 2018-09-14 17:45:56 +02:00
cmake
coccinelle coccinelle: Add script to check legal usage of sizeof expression 2018-11-07 10:34:24 -05:00
cross_compiler
dts dts/extract_dts_includes.py: Expose flash partition extract function 2018-11-06 07:42:39 -06:00
footprint size_report: cleanup up detection and error handling 2018-10-29 10:15:17 -04:00
gitlint gitlint: accept "'" in committer names 2018-09-21 12:49:23 -04:00
kconfig menuconfig: Add two small error reporting and UI improvements 2018-11-04 22:00:56 +01:00
meta/west west: runner: fix naming and paths to xt-ocd 2018-10-11 10:49:56 -04:00
sanity_chk sanitycheck: support requirements on env variables 2018-10-19 10:57:54 -04:00
support scripts: make runner a west subpackage 2018-05-19 07:01:39 +03:00
.gitignore
check_host_is_ok.py
check_link_map.py
checkpatch.pl checkpatch: downgrade COMPLEX_MACRO to a warning 2018-05-08 08:56:12 -07:00
checkstack.pl
coccicheck Coccinelle: Add support for Coccinelle infrastructure 2018-10-02 14:03:39 -07:00
dir_is_writeable.py cmake: Add function for checking if a directory is write-able 2018-04-27 12:06:02 +02:00
elf_helper.py scripts: elf_helper.py: run through flake8 2018-09-17 09:40:02 -04:00
file2hex.py
filter-known-issues.py scripts: filter-known-issues: Add extra newline 2018-07-12 23:11:46 -04:00
gen_alignment_script.py arm: Add app data section alignment constraints 2018-02-06 15:31:16 -08:00
gen_app_partitions.py subsys: app_memory: Fixed the build issue wrt ARC. 2018-09-28 08:09:23 +05:30
gen_gdt.py
gen_idt.py gen_isr_tables: Delete the dead code accompanying .intList.num_isrs 2018-06-25 12:54:49 -07:00
gen_kobject_list.py kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
gen_mmu_x86.py
gen_offset_header.py
gen_priv_stacks.py scripts: gen_priv_stacks.py: run through flake8 2018-09-17 09:40:02 -04:00
gen_syscall_header.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
gen_syscalls.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
parse_syscalls.py userspace: adjust syscall generation scripts 2018-07-24 14:39:38 -04:00
process_gperf.py arm: Generate privileged stacks 2018-02-06 15:31:16 -08:00
qemu-machine-hack.py
requirements.txt scripts: add colorama to requirements.txt 2018-09-27 05:52:39 +05:30
sanitycheck sanitycheck: only log printable chars 2018-11-05 11:00:38 -05:00
spelling.txt
subfolder_list.py cmake: Using symlinks on unix like os'es for dependencies 2018-06-19 17:00:27 +02:00
tags.sh
waitpid
west scripts: fix west launcher for macOS 2018-09-26 00:33:45 +02:00