]> git.ipfire.org Git - thirdparty/grub.git/commit
commands/test: Fix error in recursion depth calculation
authorThomas Frauendorfer | Miray Software <tf@miray.de>
Fri, 9 May 2025 11:51:08 +0000 (13:51 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 13:34:44 +0000 (14:34 +0100)
commitcc9d621dd06bfa12eac511b37b4ceda5bd2f8246
tree95baf5a6668d1312e764745d1e77fc8fc1bcf676
parent95e614a11b6bd3f5bf0df5157fed588fef1ae9cb
commands/test: Fix error in recursion depth calculation

The commit c68b7d236 (commands/test: Stack overflow due to unlimited
recursion depth) added recursion depth tests to the test command. But in
the error case it decrements the pointer to the depth value instead of
the value itself. Fix it.

Fixes: c68b7d236 (commands/test: Stack overflow due to unlimited recursion depth)
Signed-off-by: Thomas Frauendorfer | Miray Software <tf@miray.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/test.c