diff options
Diffstat (limited to 'cppcheck.cfg')
-rw-r--r-- | cppcheck.cfg | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cppcheck.cfg b/cppcheck.cfg new file mode 100644 index 0000000..f8e2620 --- /dev/null +++ b/cppcheck.cfg @@ -0,0 +1,39 @@ +<?xml version="1.0"?> +<!-- Based on https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs Exclude errors if you still need this function. --> +<def format="2"> +<function name="strlen"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="strcpy"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="strncpy"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="snprintf"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="strncat"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="strtok"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +<function name="scanfk"> + <warn severity="error">This function is considered security sensitive. Please make sure of its proper use by following https://confluence.arm.com/display/ARMSW/Security+Sensitive+APIs + </warn> + <arg nr="1"/> +</function> +</def>
\ No newline at end of file |