{"record":{"id":"611340515083d0f8","repo":"sqlmapproject/sqlmap","slug":"invalid-firebird-length-d","errorCode":null,"errorMessage":"invalid Firebird length (%d)","messagePattern":"invalid Firebird length \\((.+?)\\)","errorType":"exception","errorClass":"InterfaceError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/firebird.py","lineNumber":307,"sourceCode":"        self._rc = self._wc = None\n\n    def set_ciphers(self, rc, wc):\n        self._rc, self._wc = rc, wc\n\n    def send(self, data):\n        try:\n            self._sock.sendall(self._wc.translate(data) if self._wc else data)\n        except (socket.error, OSError) as ex:\n            raise connection_lost(ex)\n\n    def _recv_raw(self, n):\n        return recvn(self._sock, n)\n\n    def recv(self, n, align=False):\n        # every length here comes off the wire (response buffers, status strings, per-value lengths): a\n        # negative one would silently return short data, a huge one would read until memory ran out\n        if n < 0 or n > _MAX_MESSAGE_LENGTH:\n            raise InterfaceError(\"invalid Firebird length (%d)\" % n)\n        total = n + ((4 - n % 4) % 4) if align else n\n        data = self._recv_raw(total)\n        if self._rc:\n            data = self._rc.translate(data)\n        return data[:n]\n\n    def recv_int(self):\n        return struct.unpack(\"!i\", self.recv(4))[0]\n\n    def recv_bytes(self):\n        return self.recv(self.recv_int(), align=True)\n\n    def close(self):\n        try:\n            self._sock.close()\n        except Exception:\n            pass\n","sourceCodeStart":289,"sourceCodeEnd":325,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/firebird.py#L289-L325","documentation":"Error \"invalid Firebird length (%d)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/firebird.py:307 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"}