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

Class TestChr1017

tests/unit/test_a_sink_rules.py:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105# --- CHR1017 ---
106class TestChr1017:
107 def test_tainted_silent_disabled(self):
108 # CHR1017 disabled: chr() converts an integer to a character —
109 # never a security sink; generates FPs in encoding implementations.
110 assert not_fires("n=request.GET.get('n'); chr(n)", "CHR1017")
111 def test_constant_safe(self):
112 assert not_fires("chr(65)", "CHR1017")
113
114# --- CENTER927 / LJUST930 / RJUST933 ---
115class TestJustification:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected