Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion qa/L0_shared_memory/shared_memory_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,13 @@ def test_too_big_shm(self):

def test_large_shm_register_offset(self):
# Test for out of bounds read vulnerability when registering system shared memory with large offset
for platform in ["python", "onnx", "libtorch", "plan", "openvino"]:

platforms = (
["python", "onnx", "libtorch", "plan", "openvino"]
if os.environ.get("BACKENDS") is None
else os.environ.get("BACKENDS").split()
)
for platform in platforms:
model_name = f"{platform}_int32_int32_int32"

# Test for large offset
Expand Down
2 changes: 1 addition & 1 deletion qa/L0_shared_memory/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ done
# Test large system shared memory offset
rm -rf models/*
# prepare add_sub model of various backends
BACKENDS="python onnx libtorch plan openvino"
BACKENDS=${BACKENDS:-"python onnx libtorch plan openvino"}
for backend in ${BACKENDS} ; do
model="${backend}_int32_int32_int32"
model_dir="models/${model}"
Expand Down
Loading