| Ticket UUID: | 0b3595a8191076b07b0603ae745d0c7c1a849666 | ||
| Title: | Invocation of imported nested command is affected by recursionlimit and has O(n) instead of O(1) | ||
| Type: | Bug | Created on: | 2025-03-29 18:07:18 |
| Submitter: | sebres | Assigned to: | sebres |
| Subsystem: | 21. [namespace] | Severity: | Severe |
| Priority: | 5 Medium | Last modified: | 2025-03-29 18:37:05 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | any | ||
| Description: | ||||
|
Similar to [62dafd9c53882dc2], but this time it is about execution and going to missing direct pointer to the real command by nesting the imports (e. g. like nested inheritances of NS) - during the execution it always need to iterate over all nested imports up to the real command and therefore:
PoC:
Firstly it'd fail (due to incorrect exceeding of limit) with "too many nested evaluations (infinite loop?)"... By repeat after If solved, it looks like this (without the necessity to increase recursionlimit):
I'll provide the fix for this together with [62dafd9c53882dc2] (back-ported from my fork in the single branch). | ||||
