From 2bb33aac206b8dec2d5ded0442c599afd88ea477 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 2 Jan 2021 12:41:13 -0500 Subject: [PATCH] Be sure to use only a valid journal slot pointer Related commit: - https://github.com/gorhill/uBlock/commit/70cabc1cc6ab6086ca3cfe2d42299f4e3a117492 --- src/js/pagestore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pagestore.js b/src/js/pagestore.js index 729590de5..0444e2018 100644 --- a/src/js/pagestore.js +++ b/src/js/pagestore.js @@ -506,7 +506,7 @@ const PageStore = class { this.journalTimer = undefined; const journal = this.journal; - const pivot = this.journalLastCommitted || 0; + const pivot = Math.max(0, this.journalLastCommitted); const now = Date.now(); let aggregateCounts = 0;