Author: greatlrd
Date: Sat May 27 17:05:24 2006
New Revision: 22075
URL: http://svn.reactos.ru/svn/reactos?rev=22075&view=rev
Log:
sorry for breaking the build, I did put in wrong version I should have retested it
Modified:
trunk/reactos/lib/crt/misc/environ.c
Modified: trunk/reactos/lib/crt/misc/environ.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/crt/misc/environ.c?rev=…
==============================================================================
--- trunk/reactos/lib/crt/misc/environ.c (original)
+++ trunk/reactos/lib/crt/misc/environ.c Sat May 27 17:05:24 2006
@@ -245,11 +245,11 @@
memcpy(name, option, (epos - option) * sizeof(wchar_t));
name[epos - option] = 0;
- if (*name == 0) || (wcschr(option, L'=') !=NULL)
+ if ((*name == 0) || (wcschr(option, L'=') !=NULL))
{
/* fixme check see if name contain any space or so
so we really locate first char in name and compare
- it with equal
+ it with equal
*/
free(name);
return -1;
Author: greatlrd
Date: Sat May 27 17:00:39 2006
New Revision: 22073
URL: http://svn.reactos.ru/svn/reactos?rev=22073&view=rev
Log:
Bugfix environ so it does not allown = in environ name not even as frist char
Modified:
trunk/reactos/lib/crt/misc/environ.c
Modified: trunk/reactos/lib/crt/misc/environ.c
URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/crt/misc/environ.c?rev=…
==============================================================================
--- trunk/reactos/lib/crt/misc/environ.c (original)
+++ trunk/reactos/lib/crt/misc/environ.c Sat May 27 17:00:39 2006
@@ -222,6 +222,7 @@
if (option == NULL || (epos = wcschr(option, L'=')) == NULL)
return -1;
+
remove = (epos[1] == 0);
/* Duplicate environment if needed. */
@@ -244,6 +245,15 @@
memcpy(name, option, (epos - option) * sizeof(wchar_t));
name[epos - option] = 0;
+ if (*name == 0) || (wcschr(option, L'=') !=NULL)
+ {
+ /* fixme check see if name contain any space or so
+ so we really locate first char in name and compare
+ it with equal
+ */
+ free(name);
+ return -1;
+ }
/* Find the option we're trying to modify. */
for (index = 0, wenvptr = _wenviron; *wenvptr != NULL; wenvptr++, index++)
{
Author: greatlrd
Date: Sat May 27 14:55:35 2006
New Revision: 22069
URL: http://svn.reactos.ru/svn/reactos?rev=22069&view=rev
Log:
[AUDIT] after looking through code no signs of reverse engineering were found. This swap can not handling overlapped of memory, replace of this will follow in next commit.
Modified:
trunk/reactos/lib/crt/stdlib/swab.c (props changed)
Propchange: trunk/reactos/lib/crt/stdlib/swab.c
------------------------------------------------------------------------------
--- svn:needs-lock (original)
+++ svn:needs-lock (removed)
@@ -1,1 +1,0 @@
-*