Bug 49848
Summary: | povray segfaults on incorrect #macro definition | ||
---|---|---|---|
Product: | [Retired] Red Hat Powertools | Reporter: | David Nečas <yeti> |
Component: | povray | Assignee: | bero |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-01-17 15:27:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Nečas
2001-07-24 15:38:13 UTC
I getting in tough with the maintainers of povray on this. You may want to do the same. Tim The bug is near line 3153 tokenize.c (function Parse_Macro) you find New->Macro_Filename = NULL; New->Macro_Name=POV_STRDUP(Token.Token_String); GET (LEFT_PAREN_TOKEN); New->Num_Of_Pars=0; /* <<== BUG! */ change the order to New->Num_Of_Pars=0; /* Move here! */ New->Macro_Filename = NULL; New->Macro_Name=POV_STRDUP(Token.Token_String); GET (LEFT_PAREN_TOKEN); This should fix the crash later on in Destroy_Macro. -- Thorsten Froehlich, POV-Team Thanks for the patch - unfortunately powertools has been discontinued, so there's no next release to fix this in. |