summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-243-3/+1688
| | | | 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
|
* Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵Peter S. Mazinger2005-12-1613-23/+16
| | | | 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
|
* 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
|
* 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-1616-62/+56
| | | | 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
|
* Some undefs to be pedanticPeter S. Mazinger2005-12-1612-1/+19
|
* Make clone use internal _exitPeter S. Mazinger2005-12-1610-23/+10
|
* Build x64 versions only if LFS is enabledPeter S. Mazinger2005-12-167-17/+13
|
* Hide exit/_exitPeter S. Mazinger2005-12-152-4/+9
|
* Hide fork and vfork, use the newly introduced *aliasPeter S. Mazinger2005-12-1512-53/+78
|
* Hide *getc* *putc*Peter S. Mazinger2005-12-152-8/+13
|
* silly bugEric Andersen2005-12-151-1/+0
|
* Fix static apps on linux 2.6. Linux clobbers r7 in 2.6, soJoakim Tjernlund2005-12-151-1/+2
| | | | use r3 instead to pass _dl_fini.
* include features.h instead of sys/cdefs.hMike Frysinger2005-12-141-1/+1
|
* Hide _stdio_init/term, sorry, one change went mistakenly into the earlier commitPeter S. Mazinger2005-12-144-6/+6
|
* Do hidden brk, hide _brk as well for some archs, convert users of brkPeter S. Mazinger2005-12-1425-32/+47
|
* Fixup byte order handling. Not all architectures define __BIG_ENDIAN__ so i.e.Eric Andersen2005-12-143-7/+11
| | | | | | on big endian mips the code is compiled as little-endian and the wrong half of the 64-bit point value is examined to check for NaN, etc. This bug also broke fpclassify(), isfinite(), isnormal(), isinf(), finite(), and signbit().
* Convert all users of earlier hiddensPeter S. Mazinger2005-12-1337-61/+71
|
* Hidden fflush, adapt fopen to hack in libc-internal.hPeter S. Mazinger2005-12-132-3/+8
|
* Hidden readdir*Peter S. Mazinger2005-12-132-4/+6
|
* Hidden lseek[64], disabled llseek and _llseek for now, not in any headersPeter S. Mazinger2005-12-132-12/+13
|
* Do hidden fcntl*Peter S. Mazinger2005-12-132-9/+11
|