A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/marbl/canu/commit/90065fd1dce0195e6d0cc418b3f86a450520fbf7 below:

Prevent integer overflow computing consensus area and memory estimates. · marbl/canu@90065fd · 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

@@ -125,8 +125,8 @@ void

125 125

createPartitions_loadTigInfo(cnsParameters &params, tigInfo *tigs, uint32 tigsLen) {

126 126 127 127

for (uint32 ti=0; ti<tigsLen; ti++) {

128 -

uint32 len = 0;

129 -

uint32 nc = 0;

128 +

uint64 len = 0; // 64-bit so we don't overflow the various

129 +

uint64 nc = 0; // multiplications below.

130 130 131 131

// If there's a tig here, load it and get the info.

132 132

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