]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix use-after-free in Compute_All_Tasks
authorRonan Desplanques <desplanques@adacore.com>
Tue, 18 Mar 2025 12:56:58 +0000 (13:56 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 10 Jun 2025 08:58:25 +0000 (10:58 +0200)
commit2859883e8901f5db7b26c07f823e2e8bc531a70d
tree2690b3a8585aa162244c505a7d3f248d75cd2f3d
parentba729e217add91ac919c06a51f00145249fbeb4b
ada: Fix use-after-free in Compute_All_Tasks

This patch fixes a bug in System.Stack_Usage.Tasking.Compute_All_Tasks
where it would attempt to read the stack of threads that had already
completed.

gcc/ada/ChangeLog:

* libgnarl/s-stusta.adb (Compute_All_Tasks): Skip terminated tasks.
gcc/ada/libgnarl/s-stusta.adb