jeremi_tu (Jarek Jurasz)
- Login: jeremi_tu
- Email: jurb@jurasz.de
- Registered on: 06/23/2009
- Last sign in: 09/28/2009
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/28/2009
-
08:59 PM Ruby Bug #1679: rb_w32_getenv() invalidates previous environment pointers
- =begin
It does not know about SetEnvironmentVariable() in ruby_setenv() / hash.c.
GetEnvironmentVariable() needs some memory management.
The following leaky version passes the test.
char *
rb_w32_getenv(const char *name)
{
...
06/23/2009
-
08:53 PM Ruby Bug #1679 (Closed): rb_w32_getenv() invalidates previous environment pointers
- =begin
On Windows turning on page heap (gflags -p /enable ruby.exe /full) revealed that environment pointers returned by rb_w32_getenv() get invalidated on the next call to this function due to the freeing of the environment buffer.
...