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

Method test_constant_safe

tests/unit/test_a_sink_rules.py:76–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 1

not_firesFunction · 0.70

Tested by

no test coverage detected