Skip to content

OSS-Fuzz issue 417866806 #790

Closed
Closed

Description

@oss-fuzz-robot

OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=5812009696559104 for details and reproducers.

This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=417866806 and will auto-close if the status changes there.

If you have trouble accessing this report, please file an issue at https://github.com/google/oss-fuzz/issues/new.

Activity

  1. added this to the v1.17.7 milestone on Sep 18, 2025
  2. antonmedv commented on Sep 18, 2025

    @antonmedv
    Member
    package main
    
    import (
    	"fmt"
    
    	"github.com/expr-lang/expr"
    )
    
    func main() {
    	code := `[]
    	|filter($env)
    	|filter($env)
    	|filter($env)
    	`
    
    	program, err := expr.Compile(code)
    	if err != nil {
    		panic(err)
    	}
    
    	output, err := expr.Run(program, nil)
    	if err != nil {
    		panic(err)
    	}
    
    	fmt.Println(output)
    }
    
    
  3. thevilledev commented on Dec 4, 2025

    @thevilledev
    Contributor

    Just confirming after manual tests that this was fixed in #864. Prior to the commit in 709b577dd81a47647b4608e8dd6610828406256e the previous code yields:

    panic: interface conversion: ast.Node is *ast.BinaryNode, not *ast.PredicateNode
    

    Now after the fix the output is:

    []
    
  4. antonmedv commented on Dec 4, 2025

    @antonmedv
    Member

    Awesome! Thanks for checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions