Commit Graph

  • ac8bb78528 don't try to use mem in sendPage (Spider.cpp) if it cannot be reserved Brian Rasmusson 2016-10-01 23:05:55 +02:00
  • 5f14057c33 Changed two goto-loops into simpler for(;;) loops in PosdbTable.cpp Ivan Skytte Jørgensen 2016-10-01 15:04:47 +02:00
  • 44c32fe089 do not try to alloc -1 bytes if ftell fails in loadKDecompTable (UnicodeProperties.cpp) - argh Brian Rasmusson 2016-09-30 23:40:31 +02:00
  • f1885c433a do not try to alloc -1 bytes if ftell fails in loadKDecompTable (UnicodeProperties.cpp) - fix Brian Rasmusson 2016-09-30 23:36:48 +02:00
  • 7d6aeaf5dd do not try to alloc -1 bytes if ftell fails in loadKDecompTable (UnicodeProperties.cpp) Brian Rasmusson 2016-09-30 23:35:10 +02:00
  • c6103f759b avoid potential int overflow before assignment in TcpServer::closeLeastUsed Brian Rasmusson 2016-09-30 23:27:18 +02:00
  • ec5e4195cc don't work on fakeIp buf if mem could not be allocated in XmlDoc::getOutlinkFirstIpVector Brian Rasmusson 2016-09-30 23:12:27 +02:00
  • ef224d3670 avoid potential null ptr dereference in XmlDoc::printMenu Brian Rasmusson 2016-09-30 23:07:16 +02:00
  • 2623cc363f avoid potential div by zero in getWordToPhraseRatioWeights Brian Rasmusson 2016-09-30 23:05:15 +02:00
  • 744c53cd16 avoid potential null xd dereference in SpiderRequest::printToTableSimple Brian Rasmusson 2016-09-30 23:03:02 +02:00
  • d92e238e25 avoid potential div by zeros in Repair::printRepairStatus Brian Rasmusson 2016-09-30 23:01:33 +02:00
  • 3b0048ab19 avoid potential dereference of prev var in Sections::setMenus Brian Rasmusson 2016-09-30 22:57:33 +02:00
  • ba0c7fa614 avoid potential dereference of null si var in Sections::insertSubSection Brian Rasmusson 2016-09-30 22:55:55 +02:00
  • 9b8e533b8a avoid potential dereference of null sk var in Sections::setMenus Brian Rasmusson 2016-09-30 22:54:20 +02:00
  • b5953c8cd1 avoid dereferencing null ptr in setNextBrotherPtrs Brian Rasmusson 2016-09-30 22:50:32 +02:00
  • 0b42f7e57a check url for null before use in HttpServer::getDoc Brian Rasmusson 2016-09-30 22:42:01 +02:00
  • 0f459ffed0 avoid passing null ptr to function that dereferences it Brian Rasmusson 2016-09-30 20:47:41 +02:00
  • e083ec53f1 avoid working on mime obj if null in XmlDoc::getCharset Brian Rasmusson 2016-09-30 20:41:10 +02:00
  • 1b61998846 avoid potential index into null pointer in XmlDoc::getRootTitleBuf Brian Rasmusson 2016-09-30 20:29:14 +02:00
  • 90f3e719a9 avoid memcpy of null ptr in XmlDoc::getRootTitleBuf Brian Rasmusson 2016-09-30 20:23:21 +02:00
  • 25fe9341eb safer copy of filename in addPendingUnlink Brian Rasmusson 2016-09-30 20:19:31 +02:00
  • 48fb291f05 null check before use in Parms::setParm Brian Rasmusson 2016-09-30 20:10:11 +02:00
  • 60b0703773 Re-enable g_conf.m_mergeBufSize (was hardcoded to 100KB) Ivan Skytte Jørgensen 2016-09-30 16:28:51 +02:00
  • 7d0d463fcf Removed commented-out code Ivan Skytte Jørgensen 2016-09-30 16:12:52 +02:00
  • 85b247dc37 Removed keySize parameter from RdbMerge::merge() - it can be derived from the rdbid Ivan Skytte Jørgensen 2016-09-30 16:08:51 +02:00
  • 2babe34937 Slightly better encapsulation in RdbMerge; Use c'tor initializer list Ivan Skytte Jørgensen 2016-09-30 16:04:25 +02:00
  • 42af300924 Made RdbMerge::reset() private Ivan Skytte Jørgensen 2016-09-30 15:55:34 +02:00
  • 4f81d493f4 check for null before use in debug log in SpiderColl::scanListForWinners Brian Rasmusson 2016-09-30 16:28:06 +02:00
  • bb14f100c1 check content type for null before use in XmlDoc::hashContentType Brian Rasmusson 2016-09-30 16:22:18 +02:00
  • e60f73e052 check collectionrec for null before use in CommandInsertUrlFiltersRow Brian Rasmusson 2016-09-30 16:18:46 +02:00
  • c9fe6c4a54 check collectionrec for null before use in CommandRemoveUrlFiltersRow Brian Rasmusson 2016-09-30 16:17:49 +02:00
  • e8d873e22b check content type for null before use in XmlDoc::getExpandedUtf8Content Brian Rasmusson 2016-09-30 16:14:46 +02:00
  • 910db258ca Use warning/error logs for errors instead of debug Ai Lin Chia 2016-09-30 16:05:43 +02:00
  • 0e6d5d387e Remove unused m_importState Ai Lin Chia 2016-09-30 15:51:04 +02:00
  • 66e6fa5687 Remove some commented out code Ai Lin Chia 2016-09-30 14:02:59 +02:00
  • 9126ed55fc Restore contentHasMime check in XmlDoc::set4 which was wrongly removed in commit 8827d0246f Ai Lin Chia 2016-09-30 13:57:40 +02:00
  • 59f4571357 check cr for null before use in ImportState::getAvailMulticast Brian Rasmusson 2016-09-30 16:07:11 +02:00
  • 6a63f02654 do not try to print links if null in XmlDoc::printDoc Brian Rasmusson 2016-09-30 15:56:32 +02:00
  • f10c112011 check pattern for null before use in Dir::getNextFilename Brian Rasmusson 2016-09-30 15:52:57 +02:00
  • 0a0ed22110 check s->m_readBuf for null before use in readSocketWrapper2 Brian Rasmusson 2016-09-30 15:50:45 +02:00
  • e519b1f229 Merge branch 'master' of https://github.com/privacore/open-source-search-engine Brian Rasmusson 2016-09-30 15:46:05 +02:00
  • 2dee77ca62 more null checks before use in Parms::setFromFile Brian Rasmusson 2016-09-30 15:45:56 +02:00
  • f598d018d5 Suppress warnings about unused results in GCC (semantics are sub-optimal and coverity/flexelint do the right thing) Ivan Skytte Jørgensen 2016-09-30 15:32:35 +02:00
  • f4403875df check coll param for null before use in Collectiondb::addNewColl Brian Rasmusson 2016-09-30 15:32:34 +02:00
  • df3679aa03 init class members in Msg3 Brian Rasmusson 2016-09-30 15:17:56 +02:00
  • 4e1f0bef3f Merge branch 'master' of https://github.com/privacore/open-source-search-engine Brian Rasmusson 2016-09-30 15:07:19 +02:00
  • 0946500e7a init class members in TcpServer Brian Rasmusson 2016-09-30 15:07:15 +02:00
  • 94a1660d67 Added MergeSpaceCoordinator in preparation for separate-disk merging Ivan Skytte Jørgensen 2016-09-30 15:02:37 +02:00
  • 2d11dd98fc init class members in Synonyms Brian Rasmusson 2016-09-30 14:52:23 +02:00
  • e68a10dec9 init class members in Statsdb Brian Rasmusson 2016-09-30 14:49:21 +02:00
  • 0fdc22c600 init class members in Xml Brian Rasmusson 2016-09-30 14:44:17 +02:00
  • c551e4d1e1 init class members in Words Brian Rasmusson 2016-09-30 14:42:13 +02:00
  • c6f0b070d9 init class members in UrlParser Brian Rasmusson 2016-09-30 14:27:21 +02:00
  • 765b7094cc init class members in Url Brian Rasmusson 2016-09-30 14:23:18 +02:00
  • 7a0ac67861 check return of g_loop.registerWriteCallback in UdpServer.doSending and bail on error Brian Rasmusson 2016-09-30 13:59:51 +02:00
  • 024189461c init class members in UdbServer Brian Rasmusson 2016-09-30 13:56:00 +02:00
  • 8447584e03 Remove unused g_inPageInject Ai Lin Chia 2016-09-30 13:39:01 +02:00
  • 5bb3f4eecb Remove unused getSection, gotSection from InjectionRequest Ai Lin Chia 2016-09-30 12:26:43 +02:00
  • 9a5b66c26b init class members in TopTree Brian Rasmusson 2016-09-30 12:31:39 +02:00
  • 594525254e init class members in TagRec Brian Rasmusson 2016-09-30 12:26:52 +02:00
  • 089b77a5e8 removed unused (and unfinished) print function from Tag Brian Rasmusson 2016-09-30 12:24:54 +02:00
  • a6702c7a65 check printDataToBuf return code in sendReply2 Brian Rasmusson 2016-09-30 12:22:29 +02:00
  • e1cc5aeeee check for null before use in Msg25::addNote Brian Rasmusson 2016-09-30 12:11:31 +02:00
  • 3bffaa586f more read error checking in loadAddsInProgress (Msg4) Brian Rasmusson 2016-09-30 12:09:47 +02:00
  • ab95d950c6 sanity check added to atotime3 as e.g. Param.set could call it with a too short string Brian Rasmusson 2016-09-30 12:01:49 +02:00
  • 68c99bcd5d null checks in Parms::setParm Brian Rasmusson 2016-09-30 11:57:27 +02:00
  • fd31be9547 Removed last remnant logic for g_merge2 Ivan Skytte Jørgensen 2016-09-29 17:20:12 +02:00
  • 9030bc3702 Removed effectively unused global g_merge2 Ivan Skytte Jørgensen 2016-09-29 17:13:12 +02:00
  • 02ea12b4f6 Removed defunct RdbBase::m_waitingForTokenForMerge Ivan Skytte Jørgensen 2016-09-29 17:06:38 +02:00
  • 1a305db6e4 When a likely RAM error has been detected (?) shutdown without saving data Ivan Skytte Jørgensen 2016-09-29 16:55:00 +02:00
  • 300ffe9e55 Fix some bugs with special posdb delete doc key. Ai Lin Chia 2016-09-29 16:05:34 +02:00
  • 92cb25d30f Use version number instead of storing dataFileSize. It's practically impossible to get accurate bucket record count by just counting the number of addRecords Ai Lin Chia 2016-09-29 16:03:27 +02:00
  • c2523470fc More checks in Posdb unit test Ai Lin Chia 2016-09-29 12:16:41 +02:00
  • 75d46a736f Add unlocked version of RdbIndex::mergePendingDocIds Ai Lin Chia 2016-09-29 11:17:51 +02:00
  • 00a223efd9 Add more unit test for positive/negative keys merging Ai Lin Chia 2016-09-29 11:11:22 +02:00
  • e0505efb5c Fix merging of positive/negative key Ai Lin Chia 2016-09-29 11:10:56 +02:00
  • b0dc00a1fb Remove unused target Ai Lin Chia 2016-09-28 17:05:37 +02:00
  • 339984d689 check mem alloc and bail on error in SafeBuf::fillFromFile Brian Rasmusson 2016-09-29 16:01:51 +02:00
  • 5b1b3a8541 Merge branch 'master' into nomerge2 Ivan Skytte Jørgensen 2016-09-29 15:55:26 +02:00
  • b086d48cf0 Renamed internal function doneWrapper to readwriteDoneWrapper so it is easyer to see in perf-report/callgrindgit push/... Ivan Skytte Jørgensen 2016-09-29 15:50:18 +02:00
  • d22d5c1db5 Encapsulated RdbScan better Ivan Skytte Jørgensen 2016-09-29 15:47:21 +02:00
  • 62717958bf Removed commneted-out code in RdbScan.cpp Ivan Skytte Jørgensen 2016-09-29 15:34:01 +02:00
  • f5216e69c0 fix potential int overflow in getOrderOfKey. Coverity 1361344 Brian Rasmusson 2016-09-29 15:44:02 +02:00
  • fa2abd2bfc add check to avoid indexing negatively into array in RdbTree::getListSize Brian Rasmusson 2016-09-29 15:38:56 +02:00
  • d4241939ab Merge branch 'master' of https://github.com/privacore/open-source-search-engine Brian Rasmusson 2016-09-29 15:32:06 +02:00
  • 919db6b118 safer copy of dir param in RdbTree::fastSave Brian Rasmusson 2016-09-29 15:31:57 +02:00
  • dd4a375924 Moved m_inPageCache from RdbScan to Msg3::Scan Ivan Skytte Jørgensen 2016-09-29 15:28:12 +02:00
  • 41dc94e8f3 log if rename fails in RdbTree::fastSave_r Brian Rasmusson 2016-09-29 15:25:12 +02:00
  • 66a43f450a moved member init from reset to constructor as coverity found ref to null'ed ptr after RdbMap reset Brian Rasmusson 2016-09-29 15:19:43 +02:00
  • a2d2aceb09 fixed potential (theoretical) int overflow in Rdb::hasRoom Brian Rasmusson 2016-09-29 15:05:43 +02:00
  • 7b2e4b291a Merge branch 'master' into nomerge2 Ivan Skytte Jørgensen 2016-09-29 14:43:54 +02:00
  • bc5fce6a4d Run main thread in a thread Ivan Skytte Jørgensen 2016-09-29 14:40:57 +02:00
  • 3ca967518a check that collection can be looked up before attempting use in Rdb::delColl Brian Rasmusson 2016-09-29 14:30:27 +02:00
  • 65994d1dc6 check for null object before using in Rdb::deleteColl Brian Rasmusson 2016-09-29 14:21:19 +02:00
  • a9b420ea77 log if rename fails in Rdb::deleteColl Brian Rasmusson 2016-09-29 14:15:36 +02:00
  • fc7745358f check that memory was allocated OK before trying to use it in Query::set2 Brian Rasmusson 2016-09-29 13:57:58 +02:00
  • 55d29285d9 made numPositiveRecs / numNegativeRecs param order consistent with related functions in Msg5::getTreeList (were used in wrong order) Brian Rasmusson 2016-09-29 12:41:07 +02:00
  • 2fa68d0ea4 removed dead code (duplicate < 0 check) in Msg5::getList Brian Rasmusson 2016-09-29 12:21:43 +02:00
  • 5fd19d4d5d better check of null m_si before use in Msg40::launchMsg20s Brian Rasmusson 2016-09-29 12:14:11 +02:00
  • 70816a633d Merge branch 'master' into nomerge2 Ivan Skytte Jørgensen 2016-09-29 12:10:01 +02:00