Overview
| Artifact ID: | 09efc28e38c80579f04ee295678fb794053cfc87 |
|---|---|
| Ticket: | 979640ffffffffffffffffffffffffffffffffff
Buffer overruns mixing C and Tcl environment changes |
| User & Date: | stevebold on 2004-12-17 19:38:15 |
Changes
- icomment:
Logged In: YES user_id=810219 Defining USE_PUTENV doesn't work so well on UNIX, since it prevents scripts from unsetting environment variables. I have implemented a better fix that uses putenv() when setting environment variables and direct environ[] access when modifying them. This fixes the buffer overun problem and allows unsetting. The fix does not change the Windows behaviour, where putenv() can safely be used for setting and unsetting environment variables. The fix is submitted as 979640.patch and attached to this bug report. The patch was derived from 8.5a2. With it, all tests on Solaris pass. On Windows I see test failures on expr.test and winDde.test, but these occur with or without the patch. Please consider incorporating this into 8.5 or let me know what further work is needed to achieve a valid fix for this issue.
- login: "stevebold"
- mimetype: "text/plain"
- username: "stevebold"