A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marbl/canu/commit/5453c3fddb944f8d9e3fbc2edd2f1d545a83c949 below:

Fix out-of-bounds while iterating over reads. Issue #2234. · marbl/canu@5453c3f · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-2

lines changed Original file line number Diff line number Diff line change

@@ -40,7 +40,7 @@ sqCache::loadMetadata(void) {

40 40

_reads[id]._name = nullptr;

41 41

}

42 42 43 -

for (uint32 id=1; id <= _readsLen; id++) {

43 +

for (uint32 id=1; id < _readsLen; id++) {

44 44

if (_seqStore->sqStore_isIgnoredRead(id, _which) == true)

45 45

continue;

46 46

@@ -77,7 +77,7 @@ sqCache::sqCache(sqStore *seqStore,

77 77 78 78

sqCache::~sqCache() {

79 79

if (_data == nullptr) // If no data blocks, we have allocated

80 -

for (uint32 ii=0; ii <= _readsLen; ii++) // data for each read.

80 +

for (uint32 ii=0; ii < _readsLen; ii++) // data for each read.

81 81

delete [] _reads[ii]._sData;

82 82 83 83

delete [] _reads; // Delete read metadata.

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4