MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / TestMemoryview1011

Class TestMemoryview1011

tests/unit/test_a_sink_rules.py:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88# --- MEMORYVIEW1011 ---
89class TestMemoryview1011:
90 def test_tainted_silent_disabled(self):
91 # MEMORYVIEW1011 disabled: memory view creation is not a security sink.
92 assert not_fires("d=request.GET.get('data'); b=bytes(d,'utf-8'); memoryview(b)", "MEMORYVIEW1011")
93 def test_constant_safe(self):
94 assert not_fires("memoryview(b'hello')", "MEMORYVIEW1011")
95
96# --- ORD1014 ---
97class TestOrd1014:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected