1.0.33.21: safe SB-POSIX:PUTENV
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 17 Dec 2009 23:25:04 +0000 (23:25 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 17 Dec 2009 23:25:04 +0000 (23:25 +0000)
commitbb99e87c76ec62013442efe4573b4f4eaed00e92
tree777dec935198948cf266d5873de3f3e7627860fd
parent7deecae2d959173eda6a153d490c752c32050a9e
1.0.33.21: safe SB-POSIX:PUTENV

 Reported by Fare Rideau: POSIX putenv() puts the actual string it is
 passed into environ, which is definitely wrong for any lisp string.

 Since we don't want to leak memory either, implement our own putenv()
 on top of setenv() -- and the other way around on Windows which
 doesn't have setenv().

 Messed up is what this is -- to keep a semblance of sanity add
 test-cases.
NEWS
contrib/sb-posix/interface.lisp
contrib/sb-posix/posix-tests.lisp
version.lisp-expr