diff options
-rw-r--r-- | cppcheck.cfg | 39 | ||||
-rw-r--r-- | docker/CI.Dockerfile | 2 |
2 files changed, 40 insertions, 1 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 diff --git a/docker/CI.Dockerfile b/docker/CI.Dockerfile index 7994cb8..66c78bf 100644 --- a/docker/CI.Dockerfile +++ b/docker/CI.Dockerfile @@ -7,7 +7,7 @@ ARG BAZEL_VERSION=5.3.0 ARG TENSORFLOW_VERSION=2.13.0 RUN apt-get update -RUN apt-get install -y build-essential software-properties-common clang curl unzip git libc++-dev libc++abi-dev +RUN apt-get install -y build-essential software-properties-common clang curl unzip git libc++-dev libc++abi-dev cppcheck RUN add-apt-repository -y ppa:deadsnakes/ppa RUN apt-get update |