{"record":{"id":"103e21068237124e","repo":"sqlmapproject/sqlmap","slug":"invalid-huffman-eos-padding","errorCode":null,"errorMessage":"invalid Huffman EOS padding","messagePattern":"invalid Huffman EOS padding","errorType":"exception","errorClass":"H2CompressionError","httpStatus":null,"severity":"error","filePath":"lib/request/http2.py","lineNumber":363,"sourceCode":"    tail = 0\n    for item in bytearray(data):\n        for index in range(7, -1, -1):\n            bit = (item >> index) & 1\n            nxt = node.get(bit)\n            if nxt is None:\n                raise H2CompressionError(\"invalid Huffman sequence\")\n            consumed += 1\n            tail = (tail << 1) | bit\n            if isinstance(nxt, dict):\n                node = nxt\n            else:\n                out.append(nxt)\n                node = _HUFF_ROOT\n                consumed = 0\n                tail = 0\n    if node is not _HUFF_ROOT:\n        if consumed > 7 or tail != (1 << consumed) - 1:\n            raise H2CompressionError(\"invalid Huffman EOS padding\")\n    return bytes(out)\n\n\n# ---------- HPACK integer/string ----------\ndef encode_integer(value, prefix_bits, first_byte=0):\n    if not isinstance(value, integer_types) or value < 0:\n        raise ValueError(\"HPACK integer must be non-negative\")\n    if not 1 <= prefix_bits <= 8:\n        raise ValueError(\"invalid HPACK prefix width\")\n    mask = (1 << prefix_bits) - 1\n    if value < mask:\n        return bytearray([first_byte | value])\n    out = bytearray([first_byte | mask])\n    value -= mask\n    while value >= 0x80:\n        out.append((value & 0x7f) | 0x80)\n        value >>= 7\n    out.append(value)","sourceCodeStart":345,"sourceCodeEnd":381,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/lib/request/http2.py#L345-L381","documentation":"Error \"invalid Huffman EOS padding\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at lib/request/http2.py:363 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}