This website requires JavaScript.
Explore
Help
Sign In
database
/
sqlite
Watch
1
Star
0
Fork
0
You've already forked sqlite
mirror of
https://github.com/sqlite/sqlite.git
synced
2025-12-21 13:38:01 +03:00
Code
Activity
Files
c55d8262cf45391192712b3a91632d7906b9cb52
sqlite
/
ext
/
wasm
/
api
/
sqlite3-api-prologue.js
stephan
c55d8262cf
In sqlite3.wasm.allocFromTypedArray(), swap the order of the allocation and the access to the heap view object to work around an obscure issue when allocating huge blobs. The heap view object could previously become stale via the following allocation if the underlying WebAssembly.Memory object needed to grow. Essentially a realloc()-moves-the-pointer situation but it only comes up with huge allocations under the right circumstances and would trigger a JS exception (as opposed to corrupting the WASM heap). Problem reported in [forum:05b77273be104532|forum post 05b77273be104532].
...
FossilOrigin-Name: 0f712b6b0516dc151d3bcbb63497661c82e11eae368e639bbdf197e1b3467195
2025-11-09 06:32:10 +00:00
85 KiB
Raw
Blame
History
View Raw
View Git Blame
Copy Permalink