Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-02-02 | Ronald Maeder writes: | Eric Andersen | |
I have successfully made gethostbyname_r(), res_init(), and gethostid() fully reentrant. In addition, I have added a NULL check to inet_aton(). This is where SEG FAULTs were coming from when gethostbyname_r() was called. | |||
2007-02-02 | use the correct lock for access to __nameserver[] | Eric Andersen | |
2007-02-02 | fix lock naming | Eric Andersen | |
2007-02-02 | Ronald Maeder writes: | Eric Andersen | |
Hi Erik, Thanks for all your great work. I found a set of bugs in resolv.c . Basically, there is code that looks like: BIGLOCK; __nameserversXX=__nameservers; __nameserverXX=__nameserver; BIGUNLOCK; i = __dns_lookup(dname, type, __nameserversXX, __nameserverXX, &packet, &a); which is a problem because the declarations are int __nameservers; char * __nameserver[MAX_SERVERS]; int __searchdomains; char * __searchdomain[MAX_SEARCH]; so you can see that __nameserver is a pointer. Copying the pointer to __nameserverXX doesn't protect the global variable space. I have attached a patch and the new file. I hope you will incorporate these bug fixes. I spent quite a bit of time tracking them down. Many thanks, Ron | |||
2007-02-02 | fix obvious bug in ipv4/ipv6 resolving. When not using AF_INET, | Eric Andersen | |
gethostbyname2_r tries to resolve an ipv6 address from /etc/hosts using get_hosts_byname_r, but with AF_INET instead of the supplied address family. This returns ipv4 addresses marked as ipv6 ones. Fix from nbd. | |||
2007-01-29 | sync some fixes from glibc | Mike Frysinger | |
2007-01-10 | need to keep __check_rhosts_file exported for proper rhost control | Mike Frysinger | |
2006-12-08 | __resolv_lock is supposed to be shared, not static | Eric Andersen | |
2006-12-07 | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric Andersen | |
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking. | |||
2006-12-07 | Major cleanup of internal mutex locking. Be more consistant in how we do | Eric Andersen | |
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking. | |||
2006-08-24 | fix from psm: only define __ASSUME_NETLINK_SUPPORT if not defined | Mike Frysinger | |
2006-07-31 | fix h_alias handling in gethostbyaddr_r() just like in gethostbyname_r() | Mike Frysinger | |
otherwise we get messed up alias memory and this simple test case will segfault: python -c 'import socket; print socket.gethostbyaddr("80.68.88.204")[2];' see bug report in blackfin tracker for more info: http://blackfin.uclinux.org/tracker/index.php?func=detail&aid=1503&group_id=17&atid=141 | |||
2006-07-05 | fixup my copyright notice, trim stale remnants of older notices which | Eric Andersen | |
I had clearly run search/replace on that were cluttering things up. | |||
2006-07-05 | update license | Mike Frysinger | |
2006-06-20 | need hidden proto for rtime() as well | Mike Frysinger | |
2006-06-19 | sync fix fixes from glibc | Mike Frysinger | |
2006-06-19 | dont shadow the socket() function | Mike Frysinger | |
2006-03-24 | Move hidden xdr_rmtcall_args prototype before first use | Peter S. Mazinger | |
2006-03-23 | Mark some functions as BSD only | Peter S. Mazinger | |
2006-03-23 | select needs sys/select.h, str[n]casecmp/ffs needs strings.h, if BSD is not ↵ | Peter S. Mazinger | |
defined, gettimeofday has other prototype and tm_gmtoff/tm_zone do not exist | |||
2006-03-22 | Correct build if UCLIBC_HAS_CTYPE_TABLES is not defined | Peter S. Mazinger | |
2006-03-22 | Mark some functions as GNU, provide missing hidden memmem, remove ↵ | Peter S. Mazinger | |
_ISOC99/XOPEN_SOURCE | |||
2006-03-10 | Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, ↵ | Peter S. Mazinger | |
most of global data relocations are back | |||
2006-03-09 | Get rid of nested extern warnings if threads are disabled | Peter S. Mazinger | |
2006-03-09 | Add back sjhill's 14625 commit, correcting the typo that made it fail | Peter S. Mazinger | |
2006-03-01 | Update copyright | Peter S. Mazinger | |
2006-03-01 | Remove duplicate include | Peter S. Mazinger | |
2006-02-25 | Remove commented include. | "Steven J. Hill" | |
2006-02-25 | Revert change. Calls can only be used when utilizing TLS. Sorry for the ↵ | "Steven J. Hill" | |
breakage. | |||
2006-02-25 | Use the TSD macros and get rid of warnings. | "Steven J. Hill" | |
2006-02-18 | tweak the idea between having a MMU and actually using it | Mike Frysinger | |
2006-02-15 | hide xdr_u_short | Peter S. Mazinger | |
2006-02-15 | DOMULTI may be used for libc, the excluded files need work, ↵ | Peter S. Mazinger | |
linuxthreads[_db] as well, don't try on slow box | |||
2006-02-13 | libc-{a,so,multi}-y replaced by libc-y covering common objects both in ↵ | Peter S. Mazinger | |
libc.a/libc.so, the diffs go into libc-static-y/libc-shared-y exclusively, add IMA to libc, don't use any MSRC anymore | |||
2006-02-13 | Weaken all that I remember being used in libpthread | Peter S. Mazinger | |
2006-02-13 | Add files for IMA. Yes, I know it's a hack and no, I won't split the ↵ | Peter S. Mazinger | |
affected files | |||
2006-02-10 | eat whitespace | Mike Frysinger | |
2006-02-01 | weaks for __pthread_internal_tsd* are added if not built w/ -DSHARED, header ↵ | Peter S. Mazinger | |
issue | |||
2006-02-01 | global data uses libc_hidden_data_def, convert all -I hope- and add some new | Peter S. Mazinger | |
2006-01-31 | don't include wchar.h if WCHAR is disabled | Peter S. Mazinger | |
2006-01-30 | Change the only bcopy user to memmove and remove internal version of bcopy | Peter S. Mazinger | |
2006-01-29 | sync with glibc and rename local socket var to _socket | Mike Frysinger | |
2006-01-29 | sync func def with glibc and dont include sys/socket.h since we dont use ↵ | Mike Frysinger | |
socket() | |||
2006-01-29 | sync comment with glibc and dont include sys/socket.h since we dont use socket() | Mike Frysinger | |
2006-01-29 | rename to match glibc | Mike Frysinger | |
2006-01-29 | rename to match glibc | Mike Frysinger | |
2006-01-29 | sync with glibc and rename socket vars to _socket | Mike Frysinger | |
2006-01-29 | sync iruserfopen() prototype with glibc and remove double setting of cp to ↵ | Mike Frysinger | |
NULL by Bernard Fischer | |||
2006-01-29 | Bernhard Fischer writes: remove unused variable __rcmd_errstr | Mike Frysinger | |
2006-01-29 | small sync with glibc | Mike Frysinger | |