|
Bugzilla – Full Text Bug Listing |
| Summary: | visudo infinite recursion bug | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | David.Wood |
| Component: | Visudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | visudo.c patch | ||
I just committed a modified version of your fix, thanks! |
Created attachment 271 [details] visudo.c patch % cat /tmp/sudoers User_Alias FOO=joeuser Cmnd_Alias BAD=/usr/bin/ls BAR=ABC,DEF,GHI,BAD FOO +all-hosts=(sybase) BAD % visudo -cf /tmp/sudoers zsh: segmentation fault (core dumped) visudo -cf /tmp/sudoers (runs out of stack space) After applying the attached patch: % ./visudo -cf /tmp/sudoers visudo: Warning: Cmnd_Alias `BAD' references self /tmp/sudoers: parsed OK