GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — assertion failure at Modules/_sqlite/blob.c:146: `PyObject *read_multiple(pysqlite_Blob *, Py_ssize_t, Py_ssize_t): Assertion 'offset < sqlite3_blob_bytes(self->blob)' failed` · Issue #142787 · python/cpython Closed Labels extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-sqlite3type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump DescriptionCrash reportWhat happened?import sqlite3 # 1. Setup an in-memory database with a BLOB column con = sqlite3.connect(':memory:') con.execute('create table test(b blob)') # 2. Insert a small amount of data. # The unicode character '\u2603' (Snowman) is 3 bytes in UTF-8 (b'\xe2\x98\x83'). # The blob size will be 3. con.execute('insert into test(b) values (?)', ('\u2603',)) # 3. Open the BLOB for incremental I/O # Table: 'test', Column: 'b', Row: 1 blob = con.blobopen('test', 'b', 1) # 4. Trigger the crash # We request a slice starting at index 5 (which is beyond the blob size of 3) # and ending at index -5 (which wraps around to before the start). # This combination causes the internal 'offset' calculation in C to assert # failing that the offset (5) is not less than the blob bytes (3). blob[5:-5] CPython versions tested on:CPython main branch Operating systems tested on:Linux Output from running 'python -VV' on the command line:No response Linked PRsActivity
MetadataMetadataAssigneesLabelsextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-sqlite3type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |