1
0
mirror of https://github.com/gluster/glusterfs.git synced 2026-02-06 18:48:16 +01:00
Files
Xavi Hernandez 7d5f9eb132 afr: fix size of stack-allocated array (#4054)
One array allocated using alloca() was not using the right size,
corrupting adjacent memory when the array was used.

Also updated the related tests since they were not working correctly.
The test tried to pass some data through a variable that was created in
a child subshell, so the variable was empty in the parent.

To implement the same functionality but supporting passing data between
subshells, a new test command has been created: TEST_WITHIN.

It works like TEST but if the test is not successful, it waits for some
time before marking the test as bad. Once the test succeeds, whatever
data the test has returned during its execution will be available in the
variable TEST_OUTPUT.

Fixes: #4042

Signed-off-by: Xavi Hernandez <xhernandez@gmail.com>
2023-03-28 17:44:20 +05:30
..
2018-11-30 15:04:17 +05:30