-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
This is a bug found in the discussion of #545.
An empty implicitly-declared set results in a segfault.
CF f;
S x;
L F = f(x);
id f(x?{}) = x;
.end
Valgrind output
FORM 5.0.0-beta.1 (May 21 2024, v5.0.0-beta.1-66-g83e3d41) Run: Wed Jul 3 20:56:27 2024
==11465== Invalid read of size 4
==11465== at 0x23B2D2: CheckWild (wildcard.c:2279)
==11465== by 0x15C4A6: MatchFunction (function.c:1223)
==11465== by 0x15D8B3: ScanFunctions (function.c:1775)
==11465== by 0x15967E: FindRest (findpat.c:1133)
==11465== by 0x1ACE06: TestMatch (pattern.c:346)
==11465== by 0x1E022D: Generator (proces.c:3964)
==11465== by 0x1E0A74: Generator (proces.c:4216)
==11465== by 0x1E2102: Processor (proces.c:406)
==11465== by 0x150E42: DoExecute (execute.c:858)
==11465== by 0x17C690: ExecModule (module.c:291)
==11465== by 0x1D6D57: PreProcessor (pre.c:1041)
==11465== by 0x21466A: main (startup.c:1690)
==11465== Address 0x0 is not stack'd, malloc'd or (recently) free'd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working