Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | kill off simple unused warnings | Mike Frysinger | 2005-12-27 | 1 | -8/+5 | |
| | ||||||
* | kill off simple unused warnings | Mike Frysinger | 2005-12-27 | 1 | -5/+5 | |
| | ||||||
* | 2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes: | Mike Frysinger | 2005-12-27 | 1 | -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 warning | Mike Frysinger | 2005-12-27 | 1 | -1/+1 | |
| | ||||||
* | Aubrey writes: | Mike Frysinger | 2005-12-27 | 2 | -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 Frysinger | 2005-12-27 | 1 | -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. Mazinger | 2005-12-24 | 3 | -3/+1688 | |
| | | | | UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k | |||||
* | Move fnmatch.c to fnmatch_old.c | Peter S. Mazinger | 2005-12-24 | 2 | -2/+4 | |
| | ||||||
* | Remove all trailing ; after *_alias and change 2 to use weak_alias instead ↵ | Peter S. Mazinger | 2005-12-16 | 13 | -23/+16 | |
| | | | | of __attribute__ ... | |||||
* | Remove trailing ; | Peter S. Mazinger | 2005-12-16 | 3 | -5/+3 | |
| | ||||||
* | Remove trailing ; after *alias() | Peter S. Mazinger | 2005-12-16 | 9 | -22/+22 | |
| | ||||||
* | Typo | Peter S. Mazinger | 2005-12-16 | 1 | -1/+1 | |
| | ||||||
* | Adapt some missed prototypes | Peter S. Mazinger | 2005-12-16 | 1 | -4/+6 | |
| | ||||||
* | Forgot about the macros ;-( | Peter S. Mazinger | 2005-12-16 | 2 | -2/+2 | |
| | ||||||
* | memmove, exit are external iconv_main | Peter S. Mazinger | 2005-12-16 | 1 | -2/+2 | |
| | ||||||
* | Hope it solves JBG's problem, why didn't it bail out here? | Peter S. Mazinger | 2005-12-16 | 1 | -0/+4 | |
| | ||||||
* | Macros are no good for jump relocs, hack to get rid of one introduced my new ↵ | Peter S. Mazinger | 2005-12-16 | 2 | -1/+5 | |
| | | | | regex code | |||||
* | Use hidden towupper in new regex | Peter S. Mazinger | 2005-12-16 | 1 | -0/+1 | |
| | ||||||
* | Make new regex build w/ WCHAR disabled, vapier, does it now work for you? | Peter S. Mazinger | 2005-12-16 | 2 | -0/+6 | |
| | ||||||
* | Better guards within _LIBC, cleanup, typos | Peter S. Mazinger | 2005-12-16 | 3 | -19/+10 | |
| | ||||||
* | Hide towctrans*. What is SMALL_UPLOW and why do we need it? | Peter S. Mazinger | 2005-12-16 | 1 | -6/+7 | |
| | ||||||
* | Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add ↵ | Peter S. Mazinger | 2005-12-16 | 16 | -62/+56 | |
| | | | | it back | |||||
* | Convert some users and get rid of __rpc_thread_createerr jump reloc, this ↵ | Peter S. Mazinger | 2005-12-16 | 29 | -38/+102 | |
| | | | | was indeed a badly chosen name | |||||
* | Convert users | Peter S. Mazinger | 2005-12-16 | 8 | -12/+16 | |
| | ||||||
* | New regex as well | Peter S. Mazinger | 2005-12-16 | 2 | -1/+4 | |
| | ||||||
* | glob/ftw/regex_old reworked. regex_old did not have MBS_SUPPORT enabled | Peter S. Mazinger | 2005-12-16 | 4 | -37/+75 | |
| | ||||||
* | Correct some problems | Peter S. Mazinger | 2005-12-16 | 4 | -1/+12 | |
| | ||||||
* | New hidden versions | Peter S. Mazinger | 2005-12-16 | 2 | -5/+8 | |
| | ||||||
* | Get rid of warnings, use internals, create new hidden versions | Peter S. Mazinger | 2005-12-16 | 13 | -26/+44 | |
| | ||||||
* | Hide C and wchar related stuff | Peter S. Mazinger | 2005-12-16 | 5 | -86/+37 | |
| | ||||||
* | Hide locales | Peter S. Mazinger | 2005-12-16 | 1 | -9/+12 | |
| | ||||||
* | Convert some users | Peter S. Mazinger | 2005-12-16 | 2 | -2/+3 | |
| | ||||||
* | Disable some unused stuff, better guard for libc | Peter S. Mazinger | 2005-12-16 | 2 | -5/+5 | |
| | ||||||
* | Some undefs to be pedantic | Peter S. Mazinger | 2005-12-16 | 12 | -1/+19 | |
| | ||||||
* | Make clone use internal _exit | Peter S. Mazinger | 2005-12-16 | 10 | -23/+10 | |
| | ||||||
* | Build x64 versions only if LFS is enabled | Peter S. Mazinger | 2005-12-16 | 7 | -17/+13 | |
| | ||||||
* | Hide exit/_exit | Peter S. Mazinger | 2005-12-15 | 2 | -4/+9 | |
| | ||||||
* | Hide fork and vfork, use the newly introduced *alias | Peter S. Mazinger | 2005-12-15 | 12 | -53/+78 | |
| | ||||||
* | Hide *getc* *putc* | Peter S. Mazinger | 2005-12-15 | 2 | -8/+13 | |
| | ||||||
* | silly bug | Eric Andersen | 2005-12-15 | 1 | -1/+0 | |
| | ||||||
* | Fix static apps on linux 2.6. Linux clobbers r7 in 2.6, so | Joakim Tjernlund | 2005-12-15 | 1 | -1/+2 | |
| | | | | use r3 instead to pass _dl_fini. | |||||
* | include features.h instead of sys/cdefs.h | Mike Frysinger | 2005-12-14 | 1 | -1/+1 | |
| | ||||||
* | Hide _stdio_init/term, sorry, one change went mistakenly into the earlier commit | Peter S. Mazinger | 2005-12-14 | 4 | -6/+6 | |
| | ||||||
* | Do hidden brk, hide _brk as well for some archs, convert users of brk | Peter S. Mazinger | 2005-12-14 | 25 | -32/+47 | |
| | ||||||
* | Fixup byte order handling. Not all architectures define __BIG_ENDIAN__ so i.e. | Eric Andersen | 2005-12-14 | 3 | -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 hiddens | Peter S. Mazinger | 2005-12-13 | 37 | -61/+71 | |
| | ||||||
* | Hidden fflush, adapt fopen to hack in libc-internal.h | Peter S. Mazinger | 2005-12-13 | 2 | -3/+8 | |
| | ||||||
* | Hidden readdir* | Peter S. Mazinger | 2005-12-13 | 2 | -4/+6 | |
| | ||||||
* | Hidden lseek[64], disabled llseek and _llseek for now, not in any headers | Peter S. Mazinger | 2005-12-13 | 2 | -12/+13 | |
| | ||||||
* | Do hidden fcntl* | Peter S. Mazinger | 2005-12-13 | 2 | -9/+11 | |
| |