POV-Ray : Newsgroups : povray.pov4.discussion.general : Missing close brace causing segfault in >v3.8 parser code. : Missing close brace causing segfault in >v3.8 parser code. Server Time
19 Oct 2021 18:08:48 EDT (-0400)
  Missing close brace causing segfault in >v3.8 parser code.  
From: William F Pokorny
Date: 3 Oct 2021 12:23:25
Message: <6159d8fd$1@news.povray.org>
This issue affects my povr branch because in branched off of the updated 
parser. Expect this issue in release which include the parser updates 
(ie not the v3.8 release or earlier).

See: https://github.com/POV-Ray/povray/issues/439

Two examples where the parser should catch the still being defined 
function state and suggest a missing brace as the cause:

// povray +mv3.8 +iScalarFunction_missedBrace.ini
// Missing close brace causing seg fault with v4.0(master) parser updates?
#declare Fn = function {pattern {bozo
}   // <--- Missing close brace }
#declare Vn = Fn(1,2,3);
#debug concat("\nVn = ",str(Vn,1,3),"\n\n")

#error "Parse Test. Stop early"
//---

or

// povray +mv3.8 +iVectorFunction_missedBrace.ini
// Missing close brace causing seg fault with v4.0(master) parser updates?

#declare Fn = function {pigment {bozo
         color_map {[0,rgbft 0][1,rgbft 1]  // <-- missing }
     }}
#declare Vn = Fn(1,2,3);
#debug concat("\nVn = ",vstr(5,Vn,",",1,3),"\n\n")

#error "Parse Test. Stop early"
//---

Bill P.


Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.