bugText Extractor TXR - Bugs: bug #34652, txeval can invoke filters through...

 
 

bug #34652: txeval can invoke filters through quasiliteral, and so needs to set up environment.

Submitted by:  Kaz Kylheku <kkylheku>
Submitted on:  Tue 25 Oct 2011 07:37:58 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: CorrectnessStatus: Fixed
Privacy: PublicAssigned to: Kaz Kylheku <kkylheku>
Originator Name: Open/Closed: Closed
Component Version: 040Operating System: None
Fixed Release: NonePlanned Release: None
Architecture: AllABI: All

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 26 Feb 2012 12:53:37 AM UTC, comment #3:

A test case for this is:

Fixed by adding a few trivial lines of code to txeval.

Prior to the fix, the above program blows up due to a being unbound. After the fix, it works: the filter substitutes "x".

Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.
Thu 02 Feb 2012 04:09:38 AM UTC, comment #2:

This problem description is vague. Function filters do see bindings in other contexts like the @(filter ...) directive inside @(output). This is because we use an underhanded dynamic method (uw_set_match_context) to smuggle the environment through to the places where the filter is retrieved with get_filter. txeval does not do this.

Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.
Thu 22 Dec 2011 05:20:39 PM UTC, comment #1:
Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.
Tue 25 Oct 2011 07:37:58 PM UTC, original submission:

Anywhere we are evaluating forms, a quasiliteral may occur which may invoke filters through variables, e.g `@{foo :filter (:fun arbitrary)}`.

This will currently break because function filters will not see any bindings.

Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kkylheku (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 26 Feb 2012 12:53:37 AM UTCkkylhekuStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 22 Dec 2011 05:20:39 PM UTCkkylhekuSummaryeval_form can invoke filters through quasiliteral, and so needs to set up environment.=>txeval can invoke filters through quasiliteral, and so needs to set up environment.

    Back to the top


    Powered by Savane 3.1-cleanup1