1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Fix page count computation in publicSuffixList.enableWASM()

This commit is contained in:
Raymond Hill 2019-04-25 19:40:07 -04:00
parent e0d2285da0
commit f667fc2d65
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -580,7 +580,7 @@ const enableWASM = (function() {
{ imports: { memory: memory } } { imports: { memory: memory } }
); );
}).then(({ instance }) => { }).then(({ instance }) => {
const curPageCount = memory.buffer.byteLength; const curPageCount = memory.buffer.byteLength >>> 16;
const newPageCount = pslBuffer8 !== undefined const newPageCount = pslBuffer8 !== undefined
? pslBuffer8.byteLength + 0xFFFF >>> 16 ? pslBuffer8.byteLength + 0xFFFF >>> 16
: 0; : 0;