Commit ccced2e
authored
Initialize variable in mono_utility_thread_send_sync (#121490)
By design `done` variable should be set to false and changed to true,
when thread finished. But for now, `done` is not initialized.
`done` is used in the loop to check finish status and then as the return
value. An uninitialized variable contains a random value. In most cases,
this is interpreted as true and leads to early function termination and
an incorrect return value.
Signed-off-by: Aleksandr Dovydenkov <asd@altlinux.org>.
Found by Linux Verification Center (linuxtesting.org) with SVACE.1 parent fec33be commit ccced2e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments