Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(490)

Issue 5848067: code review 5848067: sort: fix computation of maxDepth to avoid infinite loop (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Stefan Nilsson
Modified:
13 years, 1 month ago
Reviewers:
CC:
golang-dev, gri
Visibility:
Public.

Description

sort: fix computation of maxDepth to avoid infinite loop The current computation loops indefinitely if n > 1<<30 (for 32-bit ints).

Patch Set 1 #

Patch Set 2 : diff -r fbc982f5aff1 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r fbc982f5aff1 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/sort/sort.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
Stefan Nilsson
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-03-20 09:59:55 UTC) #1
gri
LGTM
13 years, 1 month ago (2012-03-20 21:21:07 UTC) #2
gri
13 years, 1 month ago (2012-03-20 21:23:14 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=87d50a70f7d2 ***

sort: fix computation of maxDepth to avoid infinite loop

The current computation loops indefinitely if n > 1<<30 (for 32-bit ints).

R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/5848067

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b