Fix bug in Citus maintenance daemon initialization
Open
bug
dev_reported
- Dominant language
- C
- Stars
- 12.8k
- Forks
- 794
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 31
Description
In maintenanced.c:
> L216 is doing a strcpy_s() into bgw_function_name, but using sizeof(bgw_library_name).
```c
/* Restart after a bit after errors, but don't bog the system. */
worker.bgw_restart_time = 5;
strcpy_s(worker.bgw_library_name,
sizeof(worker.bgw_library_name), "citus");
strcpy_s(worker.bgw_function_name, sizeof(worker.bgw_library_name),
"CitusMaintenanceDaemonMain");
```
Contributor guide
Assessment
This issue has not been assessed yet.