summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another errorCorinna Vinschen2014-06-232-0/+6
| | | | case to make Coverity really happy (CID 59993).
* * select.cc (start_thread_socket): Delete si on early return in case ofCorinna Vinschen2014-06-232-3/+17
| | | | an error (CID 59967).
* * regex/regcomp.c (computematchjumps): Free local memory in case ofCorinna Vinschen2014-06-232-0/+8
| | | | error (CID 59975).
* * mount.cc (fs_info::update): Define dir in the outermost scope to avoidCorinna Vinschen2014-06-232-4/+10
| | | | | accessing out-of-scope value (CID 60027). Always initialize attr to upath (CID 60113).
* * malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,Corinna Vinschen2014-06-232-1/+9
| | | | too (CID 60120).
* * localtime.cc (tzload): Fix leaking memory (CID 60001).Corinna Vinschen2014-06-232-1/+5
|
* * exceptions.cc (try_to_debug): Free environment pointer when not usedCorinna Vinschen2014-06-232-1/+7
| | | | anymore (CID 59968).
* * net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.Corinna Vinschen2014-06-232-0/+15
| | | | Explain why.
* * environ.cc (regopt): Allocate small local buffer to avoid copyingCorinna Vinschen2014-06-232-7/+12
| | | | twice. Fixes resource leak (CID 60012). Add comment.
* * dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).Corinna Vinschen2014-06-232-1/+5
|
* * dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).Corinna Vinschen2014-06-232-0/+7
|
* * client.cc: Throughout, fix debug output of signed byte count value.Corinna Vinschen2014-06-232-8/+12
|
* * ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs.Corinna Vinschen2014-06-232-10/+27
| | | | | | | | | (CYG_LDAP_ENUM_TIMEOUT): New timeout value for enumeration only. Set to 60 secs. (CYG_LDAP_ENUM_PAGESIZE): Define as number of entries per single search page. Set to 100. Use throughout. (def_tv): Rename from tv. Use throughout. (enum_tv): New variable. Use in call to ldap_get_next_page_s.
* * ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value. Set to 30 secsCorinna Vinschen2014-06-183-6/+27
| | | | | | | for now. Use throughout. * uinfo.cc (colon_to_semicolon): New local function. (pwdgrp::fetch_account_from_windows): Convert all colons in AD gecos entry to commas.
* * faq-programming.xml: Add gettext-devel to list of packages needed to buildChristopher Faylor2014-06-172-1/+6
| | | | Cygwin.
* Fix timestampCorinna Vinschen2014-06-171-1/+1
|
* * libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returningCorinna Vinschen2014-06-172-1/+6
| | | | an out-of-scope address.
* * passwd.c (main): Fix typo in error output.Corinna Vinschen2014-06-162-1/+6
|
* * fhandler_socket.cc (fhandler_socket::evaluate_events): CallCorinna Vinschen2014-06-162-2/+11
| | | | WSASetLastError after setsockopt. Explain why.
* * grp.cc (getgrouplist): Fix setting ngroups to make sure to returnCorinna Vinschen2014-06-162-1/+6
| | | | the right value.
* merge from gccDJ Delorie2014-06-112-0/+10
|
* * libc/machine/aarch64/strchrnul.S: New file.Richard Earnshaw2014-06-115-5/+208
| | | | | | * libc/machine/aarch64/strchrnul-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * libc/machine/aarch64/strchr.S: New fileRichard Earnshaw2014-06-105-3/+220
| | | | | | * libc/machine/aarch64/strchr-stub.c: New file * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
* * configure.host (default_newlib_nano_malloc): New.DJ Delorie2014-06-106-21/+44
| | | | | | | | | | | (msp430): Set it. * configure.in (newlib_nano_malloc): Leave unset if not set by the user. * configure: Regenerate. * libc/configure.in (NEWLIB_NANO_MALLOC): Set after running configure.host. (newlib_nano_malloc): Leave unset if not set by the user. * libc/configure: Regenerate.
* * timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printingChristopher Faylor2014-06-052-2/+8
| | | | more details about odd failure condition.
* * autoload.cc (ldap_memfreeW): Remove.Corinna Vinschen2014-05-233-17/+25
| | | | | | | | (ldap_msgfree): Import. * ldap.cc: Throughout, use ldap_msgfree to free LDAPMessage memory, rather than ldap_memfreeW. (cyg_ldap::next_account): Immediately abandon search when quiting from search.
* *** empty log message ***Corinna Vinschen2014-05-231-0/+2
|
* * autoload.cc (ldap_abandon): Remove.Corinna Vinschen2014-05-224-30/+59
| | | | | | | | | | | | | | | | | (ldap_count_entries): Import. (ldap_get_next_page_s): Import. (ldap_result): Remove. (ldap_searchW): Remove. (ldap_search_abandon_page): Import. (ldap_search_init_pageW): Import. * ldap.cc (cyg_ldap::close): Use ldap_search_abandon_page to abandon search. Reset srch_id, srch_msg and srch_entry. (cyg_ldap::enumerate_ad_accounts): Use paged search to overcome server side search result set restriction. (cyg_ldap::next_account): Ditto. * ldap.h (class cyg_ldap): Add members srch_id, srch_msg and srch_entry. Remove member msg_id. (cyg_ldap::cyg_ldap): Change initialization accordingly.
* * sec_auth.cc (get_server_groups): Call get_user_local_groups only ifCorinna Vinschen2014-05-222-3/+11
| | | | get_logon_server succeeded.
* merge from gccDJ Delorie2014-05-222-1/+8
|
* * ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain stringCorinna Vinschen2014-05-224-13/+43
| | | | | | | | | | | | parameter. Convert into likely rootDSE string if not NULL, and use in subsequent call to ldap_search_stW. Add comment to explain that this is not the exactly correct solution. * ldap.h (cyg_ldap::fetch_ad_account): Change prototype accordingly. * uinfo.cc (pwdgrp::fetch_account_from_windows): Always use loc_ldap in call to fetch_posix_offset to make sure we're fetchoinmg the posix offsets from *our* domain controller. Only set domain variable to non-NULL if the account is from a trusted domain. Use domain in call to cyg_ldap::fetch_ad_account.
* * gmon.h: Pull in profile.h. Explain why.Corinna Vinschen2014-05-222-0/+20
|
* * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix potential SEGVCorinna Vinschen2014-05-222-5/+10
| | | | referencing NULL pointer.
* * libc/bsdlib.cc (forkpty): Close master and slave if fork fails toCorinna Vinschen2014-05-224-110/+84
| | | | | | | avoid resource leak (CID 59997). * libc/fts.c: Update to FreeBSD version 1.39 (CID 59947). * libc/minires.c (minires_get_search): Fix out-of-bounds read from words array (CID 59937).
* * flock.cc (delete_lock_in_parent): Use LIST_FOREACH_SAFE to avoidCorinna Vinschen2014-05-202-3/+8
| | | | dereferencing freed pointer (CID 60224).
* * fhandler_procsysvipc.cc (format_procsysvipc_msg): Rearrange code toCorinna Vinschen2014-05-202-95/+149
| | | | | | | avoid resource leakage (CID 60002). Don't use tmp_pathbuf, explain why. Fix indentation. (format_procsysvipc_sem): Ditto. (format_procsysvipc_shm): Ditto (CID 60003).
* * fhandler_process.cc (get_mem_values): Rearrange code slightly toCorinna Vinschen2014-05-202-11/+17
| | | | | | | avoid resource leakage (CID 59973). (format_process_stat): Drop temporary variable wcmd and avoid string copy without length check (CID 60050). (format_process_status): Ditto (CID 60051).
* * fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename,Corinna Vinschen2014-05-202-9/+8
| | | | rather than allocating and forgetting to free (CID 59982).
* * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Fix floppyCorinna Vinschen2014-05-203-8/+30
| | | | drive handling broken with 1.7.19.
* * scandir.cc (scandir): Assume namelist is always valid, per POSIX.Corinna Vinschen2014-05-203-29/+48
| | | | | | | (CID 60021). * sec_auth.cc (cygwin_logon_user): Securely erase password copy. (lsaprivkeyauth): Avoid trying to dereference data if no key is stored in the registry (CID 60122). Securely erase passwords after usage.
* * pseudo-reloc.cc (__report_error): Raise size of module name buffer toCorinna Vinschen2014-05-192-2/+7
| | | | PATH_MAX. Fix length in call to GetModuleFileNameW (CID 59947).
* * net.cc (call_gaa): Fix setting pa_ret pointer in case of an errorCorinna Vinschen2014-05-192-6/+15
| | | | | | from GetAdaptersAddresses (CID 60218). (get_ifs): Add missing braces in AF_INET6 case which broke netmask computation. Break out of loop if prefix gets <= 0 (CID 59939).
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.Corinna Vinschen2014-05-194-34/+50
|
* * dtable.cc (handle_to_fn): Fix length parameter in call toCorinna Vinschen2014-05-192-2/+7
| | | | QueryDosDeviceW (CID 59936).
* * pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array inCorinna Vinschen2014-05-192-2/+7
| | | | call to GetModuleFileNameW (CID 59935).
* * smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.Corinna Vinschen2014-05-192-1/+6
|
* * exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).Corinna Vinschen2014-05-192-1/+5
|
* * bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructorCorinna Vinschen2014-05-192-0/+7
| | | | to make Coverity happy (CID 59838).
* * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to makeCorinna Vinschen2014-05-193-4/+18
| | | | | | Coverity happy (CID 59993). * transport_pipes.cc (transport_layer_pipes::listen): Make listen_pipe and connect_pipe statics to make Coverity happy (CID 60010/60011).
* * syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).Corinna Vinschen2014-05-192-1/+5
|