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

Class TestOrd1014

tests/unit/test_a_sink_rules.py:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95
96# --- ORD1014 ---
97class TestOrd1014:
98 def test_tainted_silent_disabled(self):
99 # ORD1014 disabled: ord() returns the integer code point of a character —
100 # never a security sink; generates FPs in encoding/codec implementations.
101 assert not_fires("c=request.GET.get('char'); ord(c)", "ORD1014")
102 def test_constant_safe(self):
103 assert not_fires("ord('A')", "ORD1014")
104
105# --- CHR1017 ---
106class TestChr1017:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected