Skip to content
New issue

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

When I used ini_free ,I still got a segment error. #4

Closed
helintongh opened this issue Mar 20, 2020 · 1 comment
Closed

When I used ini_free ,I still got a segment error. #4

helintongh opened this issue Mar 20, 2020 · 1 comment

Comments

@helintongh
Copy link

Program received signal SIGSEGV, Segmentation fault.
0x0000000000402964 in ini_get (ini=0x0, section=0x42b5eb "syslog", key=0x42b5e0 "serverAddr")
at CloudWaf/src/dt/modules/sign_check/ini.c:233
233 char *p = ini->data;
Missing separate debuginfos, use: debuginfo-install glibc-2.17-292.el7.x86_64 libgcc-4.8.5-39.el7.x86_64 libstdc++-4.8.5-39.el7.x86_64

@rxi
Copy link
Owner

rxi commented Mar 20, 2020

As stated in the README, you should check the value returned by ini_load() to make sure it is not NULL:

An ini file can be loaded into memory by using the ini_load() function. NULL is returned if the file cannot be loaded.

@rxi rxi closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants