#186: unmatched [ causes segfault in augtool.c:63
----------------------+-----------------------------------------------------
Reporter: spamaps | Owner: lutter
Type: defect | Status: closed
Priority: minor | Milestone: next
Component: Augeas | Version: 0.8.0
Resolution: fixed | Keywords: segfault augtool
----------------------+-----------------------------------------------------
Changes (by fgiraldeau):
* status: new => closed
* resolution: => fixed
Comment:
commit cfe8fecf742ac011dbcfb0decd235c3402b3cfb5
Author: Francis Giraldeau <[email protected]>
Date: Thu Mar 17 22:18:28 2011 -0400
Fix unmatch bracket causes segfault in augtool.c
When command is parsed in augtool, function nexttoken verify that path
has
valid and matching brackets and return NULL if not. The function
cleanpath that
follows was not handling the NULL case, leading to a segmentation
fault. By
checking for NULL value, the error is thrown adequately.
Fix bug #186
Thanks to spamaps for the help to resolve this issue.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/186#comment:2>
Augeas <http://augeas.net/>
a configuration API
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel