{"record":{"id":"39aae6369afbe7b1","repo":"sqlmapproject/sqlmap","slug":"malformed-rowfmt-token-d-columns-did-not-fill-d","errorCode":null,"errorMessage":"malformed ROWFMT token (%d columns did not fill %d bytes)","messagePattern":"malformed ROWFMT token \\((.+?) columns did not fill (.+?) bytes\\)","errorType":"exception","errorClass":"InterfaceError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/sybase.py","lineNumber":180,"sourceCode":"        off += 1                                        # status (nullability - the value length says it)\n        col.usertype = _i32(data, off); off += 4\n        col.type = _u8(data, off); off += 1\n        col.size, col.scale = _FIXED_LENGTH.get(col.type, 0), 0\n        if col.type in _DECIMAL_TYPES:\n            col.size = _u8(data, off)\n            col.scale = _u8(data, off + 2)              # precision (off + 1) is not needed to decode\n            off += 3\n        elif col.type in _BLOB_TYPES:\n            col.size = _i32(data, off); off += 4\n            off += 2 + _u16(data, off)                  # the blob's table name\n        elif col.type in _LONG_TYPES:\n            col.size = _i32(data, off); off += 4\n        elif col.type not in _FIXED_LENGTH:\n            col.size = _u8(data, off); off += 1\n        off += 1 + _u8(data, off)                       # locale\n        columns.append(col)\n    if off != end:\n        raise InterfaceError(\"malformed ROWFMT token (%d columns did not fill %d bytes)\" % (count, length))\n    return columns, off\n\ndef _decode_numeric(raw, scale):\n    # sign byte then a BIG-endian magnitude, and 1 means NEGATIVE (the Microsoft encoding is the mirror\n    # image of this: little-endian, 1 == positive)\n    magnitude = 0\n    for b in bytearray(raw[1:]):\n        magnitude = (magnitude << 8) | b\n    value = -magnitude if bytearray(raw)[0] else magnitude\n    if scale:\n        text = \"%0*d\" % (scale + 1, abs(value))\n        return (\"-\" if value < 0 else \"\") + text[:-scale] + \".\" + text[-scale:]\n    return \"%d\" % value\n\ndef _decode_date(raw):\n    import datetime\n    return \"%s\" % (datetime.date(1900, 1, 1) + datetime.timedelta(days=_i32(raw, 0)))\n","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/sybase.py#L162-L198","documentation":"Error \"malformed ROWFMT token (%d columns did not fill %d bytes)\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/sybase.py:180 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"}