POV-Ray / povray

The Persistence of Vision Raytracer: http://www.povray.org/
GNU Affero General Public License v3.0
1.35k stars 282 forks source link

Missing close brace causing segfault in >v3.8 parser code. #439

Open wfpokorny opened 2 years ago

wfpokorny commented 2 years ago

In releases / branches which include the newer parser updates (>3.8 release code), missing close brace(s) causing seg faults for both scale functions and vector functions where the function ID is called before the definition is finished. The function definition being unfinished because it's missing one or more closing braces.

v3.8 beta two and earlier releases correctly complain about the function being called before it's defined and suggesting a missing brace might be the cause.

See the attached tarball for two scenes and a README detailing the fixes I've made to my playpen branch.

v4_povr_parserSegFault_missingBrace_Oct01_2021.tar.gz