summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* make sure we handle the (malloc(0)==NULL) case as Aubrey points out via the ↵Mike Frysinger2005-12-282-7/+12
| | | | e-mail list
* include grp.h just for funMike Frysinger2005-12-281-0/+1
|
* typecast away signed/unsigned warningsMike Frysinger2005-12-281-2/+2
|
* kill off unused warningMike Frysinger2005-12-271-1/+1
|
* typecast away a signed/unsigned warningMike Frysinger2005-12-271-1/+1
|
* cut pointless filesMike Frysinger2005-12-275-1912/+0
|
* kill off minor unused warningsMike Frysinger2005-12-278-16/+16
|
* tweak prototypes to match the exported versionsMike Frysinger2005-12-272-11/+11
|
* fix salt type in setup_salt()Mike Frysinger2005-12-271-1/+1
|
* nlist should be unsigned, not signed, as it tracks # of elements in ↵Mike Frysinger2005-12-271-1/+1
| | | | init_fini_list
* revert debug "fix" since it isnt correct and previous version worksMike Frysinger2005-12-271-3/+3
|
* fix signed/unsigned warningMike Frysinger2005-12-271-1/+1
|
* kill off simple unused warningsMike Frysinger2005-12-278-15/+15
|
* kill off simple unused warningsMike Frysinger2005-12-271-8/+5
|
* kill off simple unused warningsMike Frysinger2005-12-271-5/+5
|
* 2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:Mike Frysinger2005-12-271-2/+9
| | | | | | | | | | | | | | | | | | When I mounted nfs on my target, the kernel crashed. And I found it was caused by stack overflow. When I digged into it. I found the following issue. In the file "./uClibc/libc/inet/rpc/auth_unix.c" int max_nr_groups = sysconf (_SC_NGROUPS_MAX); gid_t gids[max_nr_groups]; And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h" #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ OK, here we can know max_nr_groups is assigned to 65536, that means a huge matrix "gids[65536] is in the function **authunix_create_default**. My method is doing it by malloc, the patch as follows.
* kill off minor warningMike Frysinger2005-12-271-1/+1
|
* Aubrey writes:Mike Frysinger2005-12-272-5/+21
| | | | | | | | | | | | | | When I mounted nfs on my target, the kernel crashed. And I found it was caused by stack overflow. When I digged into it. And I found not only "setgroups.c" but "getgroups.c" have the matrix (__kernel_gid_t kernel_groups[n]) on the stack which can be very large because "n" can be assigned to NGROUPS_MAX. And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h" #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ I also changed it to do malloc.
* Jan-Benedict Glaw writes:Mike Frysinger2005-12-271-1/+1
| | | | | | This patch is wrong and breaks (at least) building a static libc. The $(MISC_FNMATCH_OBJ) file still uses the .c extension, thus isn't built at all and eg. strip'ping the .c file fails, breaking the build.
* Add new fnmatch code, for now mbstate_t and mbsrtowcs are depending on ↵Peter S. Mazinger2005-12-244-3/+1709
| | | | UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k
* Move fnmatch.c to fnmatch_old.cPeter S. Mazinger2005-12-242-2/+4
|
* Build PIC objects if DOPIC is set, thx to pcjPeter S. Mazinger2005-12-231-0/+4
|
* Jie Zhang writes:Mike Frysinger2005-12-221-0/+8
| | | | | | | | I think the loop was written for MMU case. When there is MMU, mmap () is used to allocate the stack. If one segment is already mapped, we should continue to see if we can use the next one. However, for NOMMU, malloc () is used. It's waste of CPU cycles to continue to try if it fails. Here is a new patch, which makes this change only for NOMMU.
* Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵Peter S. Mazinger2005-12-1616-30/+23
| | | | of __attribute__ ...
* Remove trailing ;Peter S. Mazinger2005-12-163-5/+3
|
* Remove trailing ; after *alias()Peter S. Mazinger2005-12-169-22/+22
|
* TypoPeter S. Mazinger2005-12-161-1/+1
|
* Adapt some missed prototypesPeter S. Mazinger2005-12-161-4/+6
|
* Forgot about the macros ;-(Peter S. Mazinger2005-12-162-2/+2
|
* memmove, exit are external iconv_mainPeter S. Mazinger2005-12-161-2/+2
|
* Correct C_SYMBOL_PREFIX handling for asm, supports only none or _Peter S. Mazinger2005-12-162-1/+9
|
* Hope it solves JBG's problem, why didn't it bail out here?Peter S. Mazinger2005-12-161-0/+4
|
* Macros are no good for jump relocs, hack to get rid of one introduced my new ↵Peter S. Mazinger2005-12-162-1/+5
| | | | regex code
* Use hidden towupper in new regexPeter S. Mazinger2005-12-161-0/+1
|
* Make new regex build w/ WCHAR disabled, vapier, does it now work for you?Peter S. Mazinger2005-12-162-0/+6
|
* Use kernel provided syscalls for user-space, the one from libc is not usablePeter S. Mazinger2005-12-161-1/+6
|
* Better guards within _LIBC, cleanup, typosPeter S. Mazinger2005-12-163-19/+10
|
* Hide towctrans*. What is SMALL_UPLOW and why do we need it?Peter S. Mazinger2005-12-161-6/+7
|
* Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵Peter S. Mazinger2005-12-1617-70/+57
| | | | it back
* Convert some users and get rid of __rpc_thread_createerr jump reloc, this ↵Peter S. Mazinger2005-12-1629-38/+102
| | | | was indeed a badly chosen name
* Convert usersPeter S. Mazinger2005-12-168-12/+16
|
* New regex as wellPeter S. Mazinger2005-12-162-1/+4
|
* glob/ftw/regex_old reworked. regex_old did not have MBS_SUPPORT enabledPeter S. Mazinger2005-12-164-37/+75
|
* Correct some problemsPeter S. Mazinger2005-12-164-1/+12
|
* New hidden versionsPeter S. Mazinger2005-12-162-5/+8
|
* Get rid of warnings, use internals, create new hidden versionsPeter S. Mazinger2005-12-1613-26/+44
|
* Hide C and wchar related stuffPeter S. Mazinger2005-12-165-86/+37
|
* Hide localesPeter S. Mazinger2005-12-161-9/+12
|
* Convert some usersPeter S. Mazinger2005-12-162-2/+3
|
* Disable some unused stuff, better guard for libcPeter S. Mazinger2005-12-162-5/+5
|