Skip to content

Commit

Permalink
output_thread: 0xdeadbeef write 4 bytes, not 8 on 32bit machine
Browse files Browse the repository at this point in the history
Previously, 0xdeadbeef 00000000 written to worker task pipe causing
segfault on worker shutdown. Task of 0x00000000 address is invalid.

Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
matthewfala authored and edsiper committed Mar 1, 2022
1 parent 1b01cef commit 5c17bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flb_output_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ int flb_output_thread_pool_coros_size(struct flb_output_instance *ins)
void flb_output_thread_pool_destroy(struct flb_output_instance *ins)
{
int n;
uint64_t stop = 0xdeadbeef;
struct flb_task *stop = 0xdeadbeef;
struct flb_tp *tp = ins->tp;
struct mk_list *head;
struct flb_out_thread_instance *th_ins;
Expand Down

0 comments on commit 5c17bcb

Please sign in to comment.