Skip to content

Commit

Permalink
[FIXED JENKINS-20863] Integer overflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Feb 4, 2014
1 parent a17c789 commit 2648a3b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -105,7 +105,7 @@ public void publish(LogRecord record) {
int maxCount = records.length;
records[(position + count) % maxCount] = record;
if (count == maxCount) {
position++;
position = (position + 1) % maxCount;
} else {
count++;
}
Expand Down

1 comment on commit 2648a3b

@jglick
Copy link
Member Author

@jglick jglick commented on 2648a3b Feb 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also #1.

Please sign in to comment.