- make-fix_whitespace_tokenization.diff
Fix Savannah bug #33125 (bnc #681108): Memory corruption during build of android build system. OBS-URL: https://build.opensuse.org/package/show/Base:System/make?expand=0&rev=15
This commit is contained in:
parent
3891dc8c17
commit
28dc1ff7e8
30
make-fix_whitespace_tokenization.diff
Normal file
30
make-fix_whitespace_tokenization.diff
Normal file
@ -0,0 +1,30 @@
|
||||
Index: make-3.82/function.c
|
||||
===================================================================
|
||||
--- make-3.82.orig/function.c
|
||||
+++ make-3.82/function.c
|
||||
@@ -1133,19 +1133,14 @@ func_sort (char *o, char **argv, const c
|
||||
|
||||
/* Find the maximum number of words we'll have. */
|
||||
t = argv[0];
|
||||
- wordi = 1;
|
||||
- while (*t != '\0')
|
||||
+ wordi = 0;
|
||||
+ while ((p = find_next_token (&t, &len)) != 0)
|
||||
{
|
||||
- char c = *(t++);
|
||||
-
|
||||
- if (! isspace ((unsigned char)c))
|
||||
- continue;
|
||||
-
|
||||
- ++wordi;
|
||||
-
|
||||
- while (isspace ((unsigned char)*t))
|
||||
- ++t;
|
||||
+ ++t;
|
||||
+ wordi++;
|
||||
}
|
||||
+ if (! wordi)
|
||||
+ wordi = 1;
|
||||
|
||||
words = xmalloc (wordi * sizeof (char *));
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 15:22:27 UTC 2011 - mhopf@novell.com
|
||||
|
||||
- make-fix_whitespace_tokenization.diff
|
||||
Fix Savannah bug #33125 (bnc #681108):
|
||||
Memory corruption during build of android build system.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 7 17:22:32 UTC 2010 - mhopf@novell.com
|
||||
|
||||
|
@ -33,6 +33,7 @@ Patch2: make-slowdown-parallelism.diff
|
||||
Patch3: make-disable-broken-tests.diff
|
||||
Patch4: make-savannah-bug30723-expand_makeflags_before_reexec.diff
|
||||
Patch5: make-savannah-bug30612-handling_of_archives.diff
|
||||
Patch6: make-fix_whitespace_tokenization.diff
|
||||
Patch64: make-library-search-path.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
@ -45,6 +46,7 @@ The GNU make command with extensive documentation.
|
||||
%patch3 -p1
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6 -p1
|
||||
if [ %_lib == lib64 ]; then
|
||||
%patch64
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user