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

Issue 189420043: Issue 4212: fix out-of-bounds index in division_maior() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 4 months ago by Dan Eble
Modified:
9 years, 3 months ago
Reviewers:
benko.pal, dak
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Issue 4212: fix out-of-bounds index in division_maior()

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M lily/breathing-sign.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 9
Dan Eble
9 years, 4 months ago (2015-01-01 22:46:42 UTC) #1
benko.pal
https://codereview.appspot.com/189420043/diff/1/lily/breathing-sign.cc File lily/breathing-sign.cc (right): https://codereview.appspot.com/189420043/diff/1/lily/breathing-sign.cc#newcode122 lily/breathing-sign.cc:122: if (ydim[DOWN] < val && line_pos.begin () < it ...
9 years, 4 months ago (2015-01-01 22:57:31 UTC) #2
Dan Eble
On 2015/01/01 22:57:31, benko.pal wrote: > https://codereview.appspot.com/189420043/diff/1/lily/breathing-sign.cc > File lily/breathing-sign.cc (right): > > https://codereview.appspot.com/189420043/diff/1/lily/breathing-sign.cc#newcode122 > ...
9 years, 4 months ago (2015-01-01 23:08:56 UTC) #3
benko.pal
On 2015/01/01 23:08:56, Dan Eble wrote: > On 2015/01/01 22:57:31, benko.pal wrote: > > https://codereview.appspot.com/189420043/diff/1/lily/breathing-sign.cc ...
9 years, 4 months ago (2015-01-02 07:21:19 UTC) #4
dak
On 2015/01/02 07:21:19, benko.pal wrote: > On 2015/01/01 23:08:56, Dan Eble wrote: > > On ...
9 years, 4 months ago (2015-01-02 08:56:03 UTC) #5
benko.pal
On 2015/01/02 08:56:03, dak wrote: > On 2015/01/02 07:21:19, benko.pal wrote: > > On 2015/01/01 ...
9 years, 3 months ago (2015-01-02 11:53:29 UTC) #6
Dan Eble
On 2015/01/02 08:56:03, dak wrote: > In particular, the compiler is allowed to make > ...
9 years, 3 months ago (2015-01-02 14:16:54 UTC) #7
dak
On 2015/01/02 14:16:54, Dan Eble wrote: > On 2015/01/02 08:56:03, dak wrote: > > In ...
9 years, 3 months ago (2015-01-02 14:36:34 UTC) #8
Dan Eble
9 years, 3 months ago (2015-01-02 15:44:30 UTC) #9
On 2015/01/02 14:36:34, dak wrote:
> The case I was worried about was (line_pos.begin () < it - 1)
> This expression is undefined if it == line_pos.begin () since line_pos.begin
()
> - 1 is undefined, being before the start of the array.

Two lines up there is assert (line_pos.begin () < it), so it looks OK.
Sign in to reply to this message.

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