summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2005-12-27fix signed/unsigned warningMike Frysinger
2005-12-27kill off simple unused warningsMike Frysinger
2005-12-27kill off simple unused warningsMike Frysinger
2005-12-27kill off simple unused warningsMike Frysinger
2005-12-272005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:Mike Frysinger
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.
2005-12-27kill off minor warningMike Frysinger
2005-12-27Aubrey writes:Mike Frysinger
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.
2005-12-27Jan-Benedict Glaw writes:Mike Frysinger
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.
2005-12-24Add new fnmatch code, for now mbstate_t and mbsrtowcs are depending on ↵Peter S. Mazinger
UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k
2005-12-24Move fnmatch.c to fnmatch_old.cPeter S. Mazinger
2005-12-16Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵Peter S. Mazinger
of __attribute__ ...
2005-12-16Remove trailing ;Peter S. Mazinger
2005-12-16Remove trailing ; after *alias()Peter S. Mazinger
2005-12-16TypoPeter S. Mazinger
2005-12-16Adapt some missed prototypesPeter S. Mazinger
2005-12-16Forgot about the macros ;-(Peter S. Mazinger
2005-12-16memmove, exit are external iconv_mainPeter S. Mazinger
2005-12-16Hope it solves JBG's problem, why didn't it bail out here?Peter S. Mazinger
2005-12-16Macros are no good for jump relocs, hack to get rid of one introduced my new ↵Peter S. Mazinger
regex code
2005-12-16Use hidden towupper in new regexPeter S. Mazinger
2005-12-16Make new regex build w/ WCHAR disabled, vapier, does it now work for you?Peter S. Mazinger
2005-12-16Better guards within _LIBC, cleanup, typosPeter S. Mazinger
2005-12-16Hide towctrans*. What is SMALL_UPLOW and why do we need it?Peter S. Mazinger
2005-12-16Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵Peter S. Mazinger
it back
2005-12-16Convert some users and get rid of __rpc_thread_createerr jump reloc, this ↵Peter S. Mazinger
was indeed a badly chosen name
2005-12-16Convert usersPeter S. Mazinger
2005-12-16New regex as wellPeter S. Mazinger
2005-12-16glob/ftw/regex_old reworked. regex_old did not have MBS_SUPPORT enabledPeter S. Mazinger
2005-12-16Correct some problemsPeter S. Mazinger
2005-12-16New hidden versionsPeter S. Mazinger
2005-12-16Get rid of warnings, use internals, create new hidden versionsPeter S. Mazinger
2005-12-16Hide C and wchar related stuffPeter S. Mazinger
2005-12-16Hide localesPeter S. Mazinger
2005-12-16Convert some usersPeter S. Mazinger
2005-12-16Disable some unused stuff, better guard for libcPeter S. Mazinger
2005-12-16Some undefs to be pedanticPeter S. Mazinger
2005-12-16Make clone use internal _exitPeter S. Mazinger
2005-12-16Build x64 versions only if LFS is enabledPeter S. Mazinger
2005-12-15Hide exit/_exitPeter S. Mazinger
2005-12-15Hide fork and vfork, use the newly introduced *aliasPeter S. Mazinger
2005-12-15Hide *getc* *putc*Peter S. Mazinger
2005-12-15silly bugEric Andersen
2005-12-15Fix static apps on linux 2.6. Linux clobbers r7 in 2.6, soJoakim Tjernlund
use r3 instead to pass _dl_fini.
2005-12-14include features.h instead of sys/cdefs.hMike Frysinger
2005-12-14Hide _stdio_init/term, sorry, one change went mistakenly into the earlier commitPeter S. Mazinger
2005-12-14Do hidden brk, hide _brk as well for some archs, convert users of brkPeter S. Mazinger
2005-12-14Fixup byte order handling. Not all architectures define __BIG_ENDIAN__ so i.e.Eric Andersen
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().
2005-12-13Convert all users of earlier hiddensPeter S. Mazinger
2005-12-13Hidden fflush, adapt fopen to hack in libc-internal.hPeter S. Mazinger
2005-12-13Hidden readdir*Peter S. Mazinger