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 — sqlite3: Blob crashes when using a negative-step slice · Issue #150449 · python/cpython Closed Labels 3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-sqlite3type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-featureA feature request or enhancementA feature request or enhancement DescriptionWhat happened?
import sqlite3 con = sqlite3.connect(":memory:") con.execute("CREATE TABLE t(b BLOB)") data = b"this blob data string is exactly fifty bytes long!" con.execute("INSERT INTO t(b) VALUES (?)", (data,)) # bytearray works ba = bytearray(data) ba[9:0:-2] = b"12345" print(ba) # b't5i4 3l2b1data string is exactly fifty bytes long!' # Blob crashes blob = con.blobopen("t", "b", 1) blob[9:0:-2] = b"12345" blob.close() Reading also crashes: On Python 3.11.6 and 3.14.5 the error is CPython versions tested on:3.11.6, 3.14.5, main(629da5c) Operating systems tested on:macOS - 26.3.1 (a)(25D771280a) Related
I'd like to work on a fix for this. I'll submit a PR. Linked PRsActivity
MetadataMetadataAssigneesLabels3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes3.16new features, bugs and security fixesnew features, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtopic-sqlite3type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or errortype-featureA feature request or enhancementA feature request or enhancement 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. |