]> git.donarmstrong.com Git - lilypond.git/commit
Fix ending the dynamic extent in Text_interface::interpret_markup
authorAntonio Ospite <ao2@ao2.it>
Wed, 9 Nov 2016 17:22:25 +0000 (18:22 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 14 Nov 2016 15:33:38 +0000 (16:33 +0100)
commitd34cf536aa10d5534767c140544b28d6f720abf0
treeb8426ebbea066aed95c842c10a3218edfbbfdcdd
parentcd1ac38996d3de35770ea31f819b392fe686bf39
Fix ending the dynamic extent in Text_interface::interpret_markup

When using cyclic references under guile-2.0 lilypond crashes with
a segmentation fault:

  $ LANG=C out/bin/lilypond input/regression/markup-cyclic-reference.ly
  GNU LilyPond 2.19.51
  Processing `input/regression/markup-cyclic-reference.ly'
  Parsing...
  Finding the ideal number of pages...
  Fitting music on 1 page...
  Drawing systems...
  Layout output to `/tmp/lilypond-wkUlSF'...
  Converting to `markup-cyclic-reference.pdf'...
  Deleting `/tmp/lilypond-wkUlSF'...
  Segmentation fault

This happens because in Text_interface::interpret_markup the dynamic
extent is not ended properly in the exit path for the case when the
markup depth exceeds the max_depth.
input/regression/markup-cyclic-reference.ly
lily/text-interface.cc