aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-13 15:03:32 -0600
committerCraig Jennings <c@cjennings.net>2025-11-13 15:03:32 -0600
commit09c802cfcb40a2c1415ca5707c80b4be62380c99 (patch)
tree83a033fa19977a688695a3f65514d4b3d0b0e013 /test-from-git
parent8a1de84bd25c0f583c9f10402fd62ae477242808 (diff)
downloadorg-drill-09c802cfcb40a2c1415ca5707c80b4be62380c99.tar.gz
org-drill-09c802cfcb40a2c1415ca5707c80b4be62380c99.zip
Fix potential infinite loop in marker selection
Added safety counter to prevent infinite loop when all pending entries are invalid (deleted or no longer have drill tag). Changes: - Added attempts counter with max-attempts limit of 1000 - Loop now exits if max attempts reached - Returns nil if no valid entry found after exhausting attempts Impact: Prevents infinite loop if all pending entries become invalid, which could happen if entries are deleted or tags are removed during a session. Fixes severity B bug in todo.org
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions