Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) fixed small bug with large effect (OOM exception hazard when "show all" was selected for a blacklist)
low0124c11843ebab6
diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.javaindex 34bb67887..afb7a597f 100644--- a/htroot/Blacklist_p.java+++ b/htroot/Blacklist_p.java@@ -403,8 +403,13 @@ public class Blacklist_p {int start = -1;if (sortedlist.length > 0) {while (end < sortedlist.length) {- start = entryCount * size;- end = (entryCount + 1) * size;+ if (size > 0) {+ start = entryCount * size;+ end = (entryCount + 1) * size;+ } else {+ start = 0;+ end = sortedlist.length;+ }prop.put(DISABLED + EDIT + "subListOffset_" + entryCount + "_value", start);prop.put(DISABLED + EDIT + "subListOffset_" + entryCount + "_fvalue", start + 1);if (end > sortedlist.length) {