Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/AssemblyScript/musl

Mirror of git://git.musl-libc.org/musl
https://github.com/AssemblyScript/musl

fix arm run-time abi string functions

in arm rtabi these __aeabi_* functions have special abi (they are
only allowed to clobber r0,r1,...

e6def544358afd5648a428d2e02c147a1f901048 authored over 7 years ago
fix regression in getspnam[_r] error code for insufficient buffer size

commit 2d7d05f031e014068a61d3076c6178513395d2ae wrongly changed ERANGE
to EINVAL, likely as the ...

91d34c4533e6bf6eacad7a9f001f28f9e5ebc656 authored over 7 years ago
fix omission of microblaze user.h definitions

5948bc1a642e6cead729602c9e1a251d5f60bddb authored over 7 years ago
fix iconv conversions for iso88592-iso885916

commit 97bd6b09dbe7478d5a90a06ecd9e5b59389d8eb9 refactored the table
lookup into a function and ...

b7bfb5c3a8330002250f304cb5deb522fa054eae authored over 7 years ago
handle errors from localtime_r in ctime_r

POSIX requires ctime_r return a null pointer on failure, which can
occur if the input time_t val...

64f855874c32e192382df69f4765a7e32057a005 authored over 7 years ago
set errno when getpw*_r, getgr*_r, and getspnam_r fail

these functions return an error code, and are not explicitly
documented to set errno, but they a...

2d7d05f031e014068a61d3076c6178513395d2ae authored over 7 years ago
handle localtime errors in ctime

ctime passes the result from localtime directly to asctime. But in case
of error, localtime retu...

5c10c33d2a35204ee76931625a007fcc8cca3228 authored over 7 years ago
handle mremap failure in realloc of mmap-serviced allocations

mremap seems to always fail on nommu, and on some non-Linux
implementations of the Linux syscall...

1c86c7f5c26dd0569df7afc23ee9866fb3f645dc authored over 7 years ago
getdate: correctly specify error number

POSIX defines getdate error #5 as:
"An I/O error is encountered while reading the template file....

10800088099ec4c27c1db6c613c8bbf9f76e4057 authored over 7 years ago
catopen: set errno to EOPNOTSUPP

Per 1003.1-2008 (2016 ed.), catopen must set errno on failure.

We set errno to EOPNOTSUPP becau...

af0517301677b4206c605caaef25f5d57a31b5b8 authored over 7 years ago
fix glob failure to match plain "/" to root directory

the check to prevent matching empty string wrongly blocked matching
of "/" due to checking empti...

84eff797e3e38210cc311b000b1586b948b4fc35 authored over 7 years ago
use hard-coded sh4a atomic opcodes to avoid linker errors on sh

when using the sh4a opcodes, the assembler tags the resulting object
file as requiring sh4a. the...

bc313e880c6cde2e512d2f43e84968d1b12bd19d authored over 7 years ago
towupper/towlower: fast path for ascii chars

Make a fast path for ascii chars which is assumed to be the most common
case. This has significa...

179766aa2ef06df854bc1d9616bf6f00ce49b7f9 authored over 7 years ago
remove long-obsolete clang workarounds from mips* syscall_arch.h files

at one point, clang reportedly failed to support the asm register
constraints needed for inline ...

1c497005ee58fd237646a49231b73fd3ea79e2d5 authored over 7 years ago
fix fstatat syscall on mips64

mips64 requires 'struct stat' conversion due to incorrect 32-bit
fields where time_t should be i...

4073f03add269be8be9f84d374fe69920b78d53d authored over 7 years ago
fix fchown fallback on arches without chown(2)

The flags argument was missing, causing uninitalized data to be passed
to fchownat(2). The corre...

81f4a1200a58a84c83e73da645d4f226a8785bdf authored over 7 years ago
fix iconv conversions to legacy 8bit encodings

there was missing reverse-conversion logic for the case, handled
specially in the character set ...

97bd6b09dbe7478d5a90a06ecd9e5b59389d8eb9 authored over 7 years ago
have posix_spawnattr_setflags check for supported flags

per POSIX, EINVAL is not a mandatory error, only an optional one. but
reporting unsupported flag...

f9f686b7721e2cc35e20fa5c6df6da2dc4ac3f50 authored almost 8 years ago
add no-op POSIX_SPAWN_USEVFORK to spawn.h

the bit is reserved anyway for ABI-compat reasons; this documents it
and makes it so we can have...

77e895dcfadb156c9f378d26c9d0497ce2baf13f authored almost 8 years ago
s390x: provide sigcontext struct definition

This structure was missed when creating the s390x port.

This is based on the report and patch f...

555504166852a9b9c56ac4e1fb5bb1bf20cbf8ad authored almost 8 years ago
implement new posix_spawn flag POSIX_SPAWN_SETSID

this functionality has been adopted for inclusion in the next issue of
POSIX as the result of Au...

bb439bb17108b67f3df9c9af824d3a607b5b059d authored almost 8 years ago
remove va_arg hacks in printf core with undefined behavior

the code being removed was written to optimize for size assuming the
compiler cannot collapse co...

58e2396a9aa23c132faf4198ca4d779c84955b38 authored almost 8 years ago
make ttyname[_r] return ENODEV rather than ENOENT

commit 0a950dcf15bb9f7274c804dca490e9e20e475f3e added checking that
the pathname a tty device wa...

e1232f5b5185e8f337806841018369407e32e77d authored almost 8 years ago
fix regression in support for resolv.conf attempts option

commit d6cb08bcaca4ff1f921375510ca72bccea969c75 moved the code and
introduced an incorrect strin...

1a7fa5e5211a67e89861583516ee1566609467a1 authored almost 8 years ago
fix scalbn when result is in the subnormal range

in nearest rounding mode scalbn could introduce double rounding error
when an intermediate value...

8c44a060243f04283ca68dad199aab90336141db authored almost 8 years ago
allow full-range file offsets to mmap on archs with 64-bit syscall args

normally 32-bit archs use the mmap2 syscall and are limited to an
offset of 2^32 pages. however ...

2577b1bc16124d0690b9dd268a9f582f80bdcd67 authored almost 8 years ago
fix dl_iterate_phdr in static PIE binaries

analogous to commit 5bf7eba213cacc4c1220627c91c28deff2ffecda, use of
AT_PHDR/PT_PHDR does not ac...

b3751c3282e3fbae4b97cb4f29031df9bc6e0745 authored almost 8 years ago
fix read past end of buffer in getaddrinfo backend

due to testing buf[i].family==AF_INET before checking i==cnt, it was
possible to read past the e...

1ca597551bab424a1302938dd3504ddf73904efd authored almost 8 years ago
aarch64: add single instruction math functions

this should increase performance and reduce code size on aarch64.

the compiled code was checked...

54807d47acecab778498ced88ce8f62bfa16e379 authored almost 8 years ago
fix strptime output for %C without %y

in this case, a potentially-uninitialized or unrelated existing value
in tm_year was being used....

b6e1fe0d5e78dac647e85d49c2d537bb071ba49e authored almost 8 years ago
fix processing of strptime %p format

string pointer was not advanced after matching.

834ef7aff5695e79b1feeacfdc15eaba6a42cab9 authored almost 8 years ago
fix off-by-one in strptime %j

tm_yday range is 0-365 while %j is 1-366

85dfab7eaf1624577ec6de8375fd771ef9b4672a authored almost 8 years ago
regex: fix newline matching with negated brackets

With REG_NEWLINE, POSIX says:
"A <newline> in string shall not be matched by a period outside
a ...

9571c5314a8064eda8a56faa2ae2aeced34497a3 authored almost 8 years ago
increase limit on locale name length from 15 to 23 bytes

the old limit was one byte too short to support locale names of the
form xx_XX.UTF-8@modifier wh...

e6917eced2cc841fe3dfd9c04deec9202f9e34f3 authored almost 8 years ago
search locale name variants for gettext translations

often translations will be named only by language, whereas locale
names may also include a terri...

e4fc9ad780e36c84e1ed6b0fc01b3c53ae65ff9d authored almost 8 years ago
make setlocale return a single name for LC_ALL if all categories match

when called for LC_ALL, setlocale has to return a string representing
the state of all locale ca...

16319a5df9d50cfc642ffc8db76bc36562d4b3dd authored almost 8 years ago
fix dlopen/dlsym regression opening libs already loaded at startup

commit 4ff234f6cba96403b5de6d29d48a59fd73252040 erroneously changed
the condition for running ce...

0c53178ec09478ca5f6ca6b5ad09d50a10c8f19d authored almost 8 years ago
fix POSIX-format TZ dst transition times for southern hemisphere

the time of day at which daylight time switches over is specified in
local time in the dst state...

dbff2bb889bc831599b022c49252c69bf48f4e4e authored almost 8 years ago
s390x: fix fpreg_t and remove unused per_struct

Including sys/procfs.h complains unknown type name 'fpreg_t' in
bits/user.h. fpreg_t in bits/sig...

74bca42e1613c58805d7b048841c2fa8f8502158 authored almost 8 years ago
precalculate gnu hash rather than doing it lazily in find_sym inner loop

this change was suggested based on testing done by Timo Teräs almost
two years ago; the branch (...

a393d5cc8d22b628fcc1da1b3a2cdae42ca643a9 authored almost 8 years ago
fix threshold constants in j0f, y0f, j1f, y1f

partly following freebsd rev 279491
https://svnweb.freebsd.org/base?view=revision&revision=27949...

8cba1dc46c8f29261aa441e70bac798f2c2c0f58 authored almost 8 years ago
remove unused refcnt field for shared libraries

cb525397bb053ea49cf160965477a17b17286eb3 authored almost 8 years ago
avoid loading of multiple libc versions via explicit pathname

such loading is unsafe, and can happen when programs use their own
logic to locate a .so file th...

c49d3c8adadfa24235fcf4779bb722b1aa6f480b authored almost 8 years ago
fix one-byte overflow in legacy getpass function

if the length of the input was equal to the buffer size (128), a fixed
value of zero was written...

3ec8b3aeb88cef8574a7b0f677ebc1801f03821d authored almost 8 years ago
fix wide scanf's use of a compound literal past its lifetime

733d1ea759119bcd0554f25034d1b4113b910900 authored almost 8 years ago
fix possible fd leak, unrestored cancellation state on dns socket fail

6a209f14ff7273d9429e5153c5b6b1990cb508e3 authored almost 8 years ago
in static dl_iterate_phdr, fix use of possibly-uninitialized aux data

this could only happen if an incomplete auxv was passed into the
program, but it's better to jus...

500f5bee6c03981961f1586fca2a1dee6fdce7c7 authored almost 8 years ago
fix free of uninitialized buffer pointer on error in regexec

the fix in commit c3edc06d1e1360f3570db9155d6b318ae0d0f0f7 for
CVE-2016-8859 used gotos to exit ...

6582baa752a8facb2c8a7b5b3dcf67331429cdc1 authored almost 8 years ago
emulate lazy relocation as deferrable relocation

traditional lazy relocation with call-time plt resolver is
intentionally not implemented, as it ...

6476b8135760659b25c93ff9308425ca98a9e777 authored almost 8 years ago
reorder addend handling before symbol lookup in relocation code

these two tasks are independent now, but in order to support lazy
relocations, the failure path ...

4823b13a75b40c4408c1101b363ab00fd118fb27 authored almost 8 years ago
rework ldso handling of global symbol table for consistency

when loading libraries with dlopen, the caller can request that the
library's symbols become par...

4ff234f6cba96403b5de6d29d48a59fd73252040 authored almost 8 years ago
treat STB_WEAK and STB_GNU_UNIQUE like STB_GLOBAL in find_sym

A weak symbol definition is not special during dynamic linking, so
don't let a strong definition...

c9783e4d32e786c4b76bf77c6030111d9e79dbb7 authored almost 8 years ago
fix ld-behavior-dependent crash in ppc64 ldso startup

the 32-bit pc-relative address for stage 2 of dynamic linker entry was
wrongly loaded with a zer...

fc85fb38605a8bf341c367b8ab0d36edab2bdbfc authored almost 8 years ago
fix lsearch and lfind to pass key as first arg to the compar callback

this is not a conformance issue as posix does not specify the
argument order, but the order is s...

827c4e6fbe46142049ef3d8bcb8f35951712797d authored almost 8 years ago
allow page size to vary on arm

the ABI for arm was silently changed at some point to allow page sizes
other than 4k; traditiona...

0a4a16d11cc263c3f32325f985b9ed94b04af79f authored almost 8 years ago
fix build regression in arm atomics asm with new binutils

binutils commit bada43421274615d0d5f629a61a60b7daa71bc15 tightened
immediate fixup handling in g...

b261a24256792177a5f0531dbb25cc6267220ca5 authored almost 8 years ago
s390x: implement dlsym

This was missed when writing the port initially.

9201c3afce0ff53a9b1c5da5285ff84c11dee9d4 authored almost 8 years ago
avoid unbounded strlen in gettext functions

use the standard strnlen idiom for cases where lengths greater than an
imposed limit are going t...

d6601f0af0452b218d247cb47513fc9cd6bbf2e2 authored almost 8 years ago
fix use of uninitialized pointer in gettext core

the plural_rule field of allocated msgcat structures was assumed to be
initially-null but was ne...

dbbb3734d8c0176feabd6c46e2e85bbc3b8a60af authored almost 8 years ago
fix bindtextdomain logic error deactivating other domains

this loop was only supposed to deactivate other bindings for the same
text domain name, but due ...

01e6bbece2bdcac243cdb8dff6916f2bb80a19e1 authored almost 8 years ago
fix spurious EINTR errors from multithreaded set*id, etc.

commit 78a8ef47c4d92b7680c52a85f80a81e29da86bb9 inadvertently removed
the SA_RESTART flag from t...

6894f8472614e22c76820b6469d2551d17e024ed authored about 8 years ago
fix crashes in x32 __tls_get_addr

x32 has another gratuitous difference to all other archs:
it passes an array of 64bit values to ...

1f53e7d00c375efb32e2e468f91a42668653d5f0 authored about 8 years ago
fix crash from corrupted tls module list after failed dlopen

commit d56460c939c94a6c547abe8238f442b8de10bfbd introduced this
regression as part of splitting ...

27b3fd68f67b674440d21ea7ca5cf918d2e1559f authored about 8 years ago
treat base 1 as an error in strtol-family functions

ISO C and POSIX only specify behavior for base arguments of 0 and
2-36; POSIX mandates an EINVAL...

809ff8cf90254921ea38eb6fa1ce326d9008513b authored about 8 years ago
fix getopt[_long] clobbering of optopt on success

getopt is only specified to modify optopt on error, and some software
apparently infers an error...

786fda875a901dc1807289c940338487854cd3ba authored about 8 years ago
reduce impact of REG_* namespace pollution in x86[_64] signal.h

when _GNU_SOURCE is defined, which is always the case when compiling
c++ with gcc, these macros ...

150747b41e1ecefe82aa45d68c84b9e957b03e29 authored about 8 years ago
make globfree safe after failed glob from over-length argument

commit 0dc99ac413d8bc054a2e95578475c7122455eee8 added input length
checking to avoid unsafe VLA ...

769f53598e781ffc89191520f3f8a93cb58db91f authored about 8 years ago
fix strftime %y for negative years

commit 583ea83541dcc6481c7a1bd1a9b485526bad84a1 fixed the case where
tm_year is negative but the...

61fb81e3959ecf0848eef8d2767bb80ae5d1a68e authored about 8 years ago
release 1.1.16

8fe1f2d79b275b7f7fb0d41c99e379357df63cd9 authored about 8 years ago
update tcp_info struct to linux v4.9

export tcp data delivery rate in tcp_info struct.
see linux commit eb8329e0a04db0061f714f033b445...

60c46db80b0b5def37bd306cf526da0b491a1454 authored about 8 years ago
add MS_NOREMOTELOCK mount flag from linux v4.9

for handling file locking on overlayfs.
see linux commit c568d68341be7030f5647def68851e469b21ca11

a8a8fdff968c19a05331b032cf395b5cf0dbbd84 authored about 8 years ago
add pkey_{mprotect,alloc,free} syscalls from linux v4.9

see linux commit e8c24d3a23a469f1f40d4de24d872ca7023ced0a
and linux Documentation/x86/protection...

62eaf40bf4247751f630faa3c853eacf81874c94 authored about 8 years ago
fix support for initialized TLS in static PIE binaries

the static-linked version of __init_tls needs to locate the TLS
initialization image via the ELF...

5bf7eba213cacc4c1220627c91c28deff2ffecda authored about 8 years ago
when building for arm as thumb2 code, also request assembly as thumb

all assembly is now thumb2-compatible. on existing targets this is at
best a size optimization, ...

088c9674a9c81cf20e9a863df571ba6d48e9ae37 authored about 8 years ago
rework arm atomic/tp backends to be thumb-compatible and fdpic-ready

three problems are addressed:

- use of pc arithmetic, which was difficult if not impossible to ...

29237f7f5c09c436825a7a12b68ab4143b0ebd1f authored about 8 years ago
disable use of arm memcpy asm if building as thumb code

the thumb incompatibilities in the asm are probably only minor and
should be fixable, but for no...

9067a3006ea2f84395ab23a1dd30191387312e0c authored about 8 years ago
make arm setjmp/longjmp asm thumb2-compatible

sp cannot be used in the ldm/stm register set in thumb mode.

fbbeda172d6f146067f9f57ab1498cf99c8d1007 authored about 8 years ago
use lookup table for malloc bin index instead of float conversion

float conversion is slow and big on soft-float targets.

The lookup table increases code size a ...

61ff1af76f4887bb7c555e4d0b8a7eeb73b05086 authored about 8 years ago
handle ^ and $ in BRE subexpression start and end as anchors

In BRE, ^ is an anchor at the beginning of an expression, optionally
it may be an anchor at the ...

7a4c25d78030b3a43ed5c8dd1a456f73cb990f44 authored about 8 years ago
fix mrand48/jrand48 return value on 64-bit archs

POSIX specifies the result to have signed 32-bit range. on 32-bit
archs, the implicit conversion...

adfe682eb0d77c6afc751f5e407d9da39623c24e authored about 8 years ago
in public headers, don't assume pre-C99 compilers have __inline keyword

bfcf5735d08b4e57e0865006392822f8b526771a authored about 8 years ago
fix crashing sigsetjmp on s390x

the bz instruction that was wrongly used only admits a small immediate
displacement and cannot b...

c1020cf21e7c09cf313c98b69d5c5af8f3895502 authored about 8 years ago
fix use of incomplete struct type in s390x user.h

3f79eaa870a87c7f7d19c0e340791fac80a16d06 authored about 8 years ago
fix typo in s390x user.h

afefce19fd7d1dd6aa8789f598a60b1d974f45fb authored about 8 years ago
remove legacy i386 fallback stdarg implementation and framework

this has been slated for removal for a long time. there is
fundamentally no way to implement std...

ffaaa6d230512f3a7f3d040b943517728f3dc3cf authored about 8 years ago
remove largish unused field from pthread structure

6f1866768a86239672ed811777dfe89994d64a65 authored about 8 years ago
work around gdb issues recognizing sigreturn trampoline on x86_64

gdb can only backtrace/unwind across signal handlers if it recognizes
the sa_restorer trampoline...

54991729fd1e3d3a0cb71884d758d86afe6da9e0 authored about 8 years ago
add s390x port

15094943050eb9a564f409323070e50b40f78816 authored about 8 years ago
treat null vdso base same as missing

On s390x, the kernel provides AT_SYSINFO_EHDR, but sets it to zero, if the
program being run doe...

54482898abe8d6d937ee67ea5974cd8eae859c37 authored about 8 years ago
generalize ELF hash table types not to assume 32-bit entries

alpha and s390x gratuitously use 64-bit entries (wasting 2x space and
cache utilization) despite...

b418ea1b66d0d5a08640d4edf3b65d4619c6ef7f authored about 8 years ago
fix build regression on archs with variable page size

commit 31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7 used
DEFAULT_GUARD_SIZE from pthread_impl.h in a...

4078a5c31fa67987051c2180db7a07702534032f authored about 8 years ago
add limited pthread_setattr_default_np API to set stack size defaults

based on patch by Timo Teräs:

While generally this is a bad API, it is the only existing API to...

31fb174dd295e50f7c5cf18d31fcfd5fe5a063b7 authored about 8 years ago
fix pthread_create regression from stack/guard size simplification

commit 33ce920857405d4f4b342c85b74588a15e2702e5 broke pthread_create
in the case where a null at...

ea7891a651dc4abc1305438470f1e4cc3b64ece2 authored about 8 years ago
make netinet/in.h suppress clashing definitions from kernel headers

the linux kernel uapi headers provide their own definitions of the
structures from netinet/in.h,...

04983f2272382af92eb8f8838964ff944fbb8258 authored about 8 years ago
simplify pthread_attr_t stack/guard size representation

previously, the pthread_attr_t object was always initialized all-zero,
and stack/guard size were...

33ce920857405d4f4b342c85b74588a15e2702e5 authored about 8 years ago
fix swprintf internal buffer state and error handling

the swprintf write callback never reset its buffer pointers, so after
its 256-byte buffer filled...

7442442ccc665641a8827177e8e7ed45bbbd6584 authored about 8 years ago
fix integer overflow of tm_year in __secs_to_tm

the overflow check for years+100 did not account for the extra
year computed from the remaining ...

bc1e7731cee963e422575f81048792f4d5db9641 authored about 8 years ago
fix ldso reserved library name handling

If a DT_NEEDED entry was the prefix of a reserved library name
(up to the first dot) then it was...

5ffe515ca485c8e6e57cd5acda6bc6008f85660c authored about 8 years ago
fix accidental global static pointer in ldso

this was harmless as load_library is not called concurrently,
but it used one word of bss.

86e8cc0fd46f5789e80a16d68ae86f7358f64705 authored about 8 years ago
don't claim support for resolv.h APIs that aren't supported

the value 19991006 for __RES implies availability of res_ninit and
related functions that take a...

c8fdcfe550997243daba0814a95f42890dc60e45 authored about 8 years ago