sqlmapproject/sqlmap · error · ValueError
truncated DER content
Error message
truncated DER content
What it means
Error "truncated DER content" thrown in sqlmapproject/sqlmap.
Source
Thrown at extra/kerberos/der.py:116
if offset + 2 > len(data):
raise ValueError("truncated DER header")
tag = data[offset]
first = data[offset + 1]
offset += 2
if first < 0x80:
length = first
elif first == 0x80:
raise ValueError("indefinite-length DER is not permitted")
else:
count = first & 0x7f
if offset + count > len(data):
raise ValueError("truncated DER length")
length = 0
for _ in range(count):
length = (length << 8) | data[offset]
offset += 1
if offset + length > len(data):
raise ValueError("truncated DER content")
return tag, data[offset:offset + length], offset + length
def children(content):
"""Iterate the TLVs contained in a constructed value; yields (tag, content_bytearray)."""
content = bytearray(content)
offset = 0
out = []
while offset < len(content):
tag, inner, offset = peel(content, offset)
out.append((tag, inner))
return out
def decodeInteger(content):
content = bytearray(content)
if not content:
return 0
value = 0View on GitHub (pinned to 0a35b20e39)
When it happens
Trigger: Thrown at extra/kerberos/der.py:116 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sqlmapproject/sqlmap@0a35b20e39 (2026-08-26).
Data as JSON: /api/errors/8a83c54262bb0447.
Report an issue: GitHub.