1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49: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 } }
);
}).then(({ instance }) => {
const curPageCount = memory.buffer.byteLength;
const curPageCount = memory.buffer.byteLength >>> 16;
const newPageCount = pslBuffer8 !== undefined
? pslBuffer8.byteLength + 0xFFFF >>> 16
: 0;