CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
97 lines
2.4 KiB
YAML
Executable File
97 lines
2.4 KiB
YAML
Executable File
# A list of source/propagation function
|
|
Propagations:
|
|
# int x = mySource1(); // x is tainted
|
|
- Name: mySource1
|
|
DstArgs: [-1] # Index for return value
|
|
|
|
# int x;
|
|
# mySource2(&x); // x is tainted
|
|
- Name: mySource2
|
|
DstArgs: [0]
|
|
|
|
# int x = myNamespace::mySource3(); // x is tainted
|
|
- Name: mySource3
|
|
Scope: "myNamespace::"
|
|
DstArgs: [-1]
|
|
|
|
# int x = myAnotherNamespace::mySource3(); // x is tainted
|
|
- Name: mySource3
|
|
Scope: "myAnotherNamespace::"
|
|
DstArgs: [-1]
|
|
|
|
# int x, y;
|
|
# myScanf("%d %d", &x, &y); // x and y are tainted
|
|
- Name: myScanf
|
|
VariadicType: Dst
|
|
VariadicIndex: 1
|
|
|
|
# int x, y;
|
|
# Foo::myScanf("%d %d", &x, &y); // x and y are tainted
|
|
- Name: myMemberScanf
|
|
Scope: "Foo::"
|
|
VariadicType: Dst
|
|
VariadicIndex: 1
|
|
|
|
# int x; // x is tainted
|
|
# int y;
|
|
# myPropagator(x, &y); // y is tainted
|
|
- Name: myPropagator
|
|
SrcArgs: [0]
|
|
DstArgs: [1]
|
|
|
|
# constexpr unsigned size = 100;
|
|
# char buf[size];
|
|
# int x, y;
|
|
# int n = mySprintf(buf, size, "%d %d", x, y); // If size, x or y is tainted
|
|
# // the return value and the buf will be tainted
|
|
- Name: mySnprintf
|
|
SrcArgs: [1]
|
|
DstArgs: [0, -1]
|
|
VariadicType: Src
|
|
VariadicIndex: 3
|
|
|
|
# A list of filter functions
|
|
Filters:
|
|
# int x; // x is tainted
|
|
# isOutOfRange(&x); // x is not tainted anymore
|
|
- Name: isOutOfRange
|
|
Args: [0]
|
|
|
|
# int x; // x is tainted
|
|
# myNamespace::isOutOfRange(&x); // x is not tainted anymore
|
|
- Name: isOutOfRange2
|
|
Scope: "myNamespace::"
|
|
Args: [0]
|
|
|
|
# int x; // x is tainted
|
|
# myAnotherNamespace::isOutOfRange(&x); // x is not tainted anymore
|
|
- Name: isOutOfRange2
|
|
Scope: "myAnotherNamespace::"
|
|
Args: [0]
|
|
|
|
# char *str; // str is tainted
|
|
# sanitizeCmd(str) // str is not tainted anymore
|
|
- Name: sanitizeCmd
|
|
Args: [0]
|
|
|
|
# A list of sink functions
|
|
Sinks:
|
|
# int x, y; // x and y are tainted
|
|
# mySink(x, 0, 1); // It will warn
|
|
# mySink(0, 1, y); // It will warn
|
|
# mySink(0, x, 1); // It won't warn
|
|
- Name: mySink
|
|
Args: [0, 2]
|
|
|
|
# int x; // x is tainted
|
|
# myNamespace::mySink(x); // It will warn
|
|
- Name: mySink2
|
|
Scope: "myNamespace::"
|
|
Args: [0]
|
|
|
|
# int x; // x is tainted
|
|
# myAnotherNamespace::mySink(x); // It will warn
|
|
- Name: mySink2
|
|
Scope: "myAnotherNamespace::"
|
|
Args: [0]
|