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
cfgtest example fails with test.conf and simple.conf #120
Comments
cfgtest
example fails with test.conf
and simple.conf
Good catch! It seems we have a regression in parsing |
Some background to this: CVE-2018-19760 was published against libconfuse, based on this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1649152 . Out of curiosity, I went to see what the problem was. The bug report is apparently incorrect and the ASAN output looks like premature exit without clean up on an error in the caller, not the library. I was slightly surprised that |
Ah, thanks for following up on this! Yeah, the POC was unreadable so quite difficult to do postmortem with. Not cleaning up would definitely cause loss of memory so yeah We've "recently" introduced support for returning comment data and that's causing cfgtest to fail atm. I'll look into it later on, unless someone else beats me to it. |
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Running
cgftest
(with defaulttest.conf
andsimple.conf
) on the current master,cfg_parse
returnsCFG_PARSE_ERROR
here.It could be by design. However, both
test.conf
andsimple.conf
are cited as good examples.For example, running
./cfgtest test.conf
produces:The text was updated successfully, but these errors were encountered: