Project

General

Profile

Actions

Bug #3812

closed

(mswin|mingw) ENV[]= fails silently to set huge values

Bug #3812: (mswin|mingw) ENV[]= fails silently to set huge values

Added by pweldon (Peter Weldon) over 15 years ago. Updated almost 15 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-09-08 trunk 29195) [i386-mswin32_100]
Backport:
[ruby-core:32250]

Description

=begin
On mswin&mingw the size of an environment key, value pair is bounded by _MAX_ENV. Calls to putenv() or _putenv() that exceed this will fail and not set the value.

Trivial patch that adds test case and error checking to raise Errno::EINVAL on failure.
=end


Files

setenv.patch (2.28 KB) setenv.patch pweldon (Peter Weldon), 09/10/2010 02:50 AM
Actions

Also available in: PDF Atom