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

Class TestBytes1005

tests/unit/test_a_sink_rules.py:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71# --- BYTES1005 ---
72class TestBytes1005:
73 def test_tainted_silent_disabled(self):
74 # BYTES1005 disabled: bytes() encoding is not a security sink on its own.
75 assert not_fires("d=request.GET.get('data'); bytes(d,'utf-8')", "BYTES1005")
76 def test_constant_safe(self):
77 assert not_fires("bytes('hello','utf-8')", "BYTES1005")
78
79# --- BYTEARRAY1008 ---
80class TestBytearray1008:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected