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

Issue 343160043: beam.cc: avoid calculating an invalid reference

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 years, 11 months ago by dak
Modified:
5 years, 11 months ago
Reviewers:
mtasaka
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

beam.cc: avoid calculating an invalid reference In calc_beam_segments, an invalid reference to a neighboring segment was calculated (and not used) at the extreme ends of the beam. This caused segfaults on Fedora. Since the reference is used at most twice anyway and in the same expression, it seems easier to just use the expression directly (the invalid cases are then skipped due to short-circuit evaluation).

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M lily/beam.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 2
mtasaka
I checked the patch and it looks good. Also I've confirmed that applying this patch ...
5 years, 11 months ago (2018-05-09 15:07:04 UTC) #1
dak
5 years, 11 months ago (2018-05-09 15:20:32 UTC) #2
On 2018/05/09 15:07:04, mtasaka wrote:
> I checked the patch and it looks good. Also I've confirmed that applying this
> patch actually prevents abort for reported rest-pitched-beam.ly and
> as-the-deer.ly (as-the-deer.ly was on RedHat bugzilla).

Thanks, I'll take that as an LGTM then.
Sign in to reply to this message.

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