We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source file: chkconfig.c where the function: qsort(services, numServices, sizeof(*services), serviceNameCmp); here the function serviceNameCmp
chkconfig.c
static int serviceNameCmp(const void *a, const void *b) { return strcmp(*(char **)a, *(char **)b); }
may cause function qsort to segfault Reference: https://stackoverflow.com/questions/33774013/getting-segmentation-fault-when-using-qsort-for-sorting-array-of-strings-in-c
The text was updated successfully, but these errors were encountered:
#87
Sorry, something went wrong.
fix the occasional high-risk problem,while add a invalid service in t…
c63f3e7
…he directory of /etc/chkconfig.d,execute chkconfig will coredump. fedora-sysv#83
Fixed via #87. Thank you for reporting this issue.
jamacku
Successfully merging a pull request may close this issue.
Source file:
chkconfig.c
where the function: qsort(services, numServices, sizeof(*services), serviceNameCmp); here the function serviceNameCmpmay cause function qsort to segfault
Reference: https://stackoverflow.com/questions/33774013/getting-segmentation-fault-when-using-qsort-for-sorting-array-of-strings-in-c
The text was updated successfully, but these errors were encountered: