|
Bugzilla – Full Text Bug Listing |
| Summary: | Crash in sudo's setenv() when _var_ == NULL | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Diego Elio Petteno' <flameeyes> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.7.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| URL: | https://bugs.gentoo.org/show_bug.cgi?id=273785 | ||
|
Description
Diego Elio Petteno'
2009-06-15 07:08:36 MDT
I've committed a change to make setenv() return EINVAL if var is NULL or empty which will be present in sudo 1.7.2. I really think that checking for NULL in functions that take a string is a bad idea since it hides bugs in the code that calls it. However, since there seems to be code that relies on this behavior I suppose there's not a better option. |