diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-06 17:35:07 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-06 19:13:12 +0300 |
| commit | 72618ba82af966bbde6fda49905f6b2b6fa25fd0 (patch) | |
| tree | ed7d02431871bec8d4b56342e9220350b108ee0c /tests/topotests/all_protocol_startup/test_all_protocol_startup.py | |
| parent | 3f220bc814abeb11a17fad80f14c7ba79af67429 (diff) | |
lib: fix incorrect thread management
The current code passes an address of a local variable to `thread_add_read`
which stores it into `thread->ref` by the lib. The next time the thread
callback is executed, the lib stores NULL into the `thread->ref` which
means it writes into some random memory on the stack.
To fix this, we should pass a pointer to the vector entry to the lib.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'tests/topotests/all_protocol_startup/test_all_protocol_startup.py')
0 files changed, 0 insertions, 0 deletions
