You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Rich Felker
9be4ed5d89
getopt_long_only: don't prefix-match long-options that match short ones
for getopt_long, partial (prefix) matches of long options always begin
with "--" and thus can never be ambiguous with a short option. for
getopt_long_only, though, a single-character option can match both a
short option and as a prefix for a long option. in this case, we
wrongly interpreted it as a prefix for the long option.
introduce a new pass, only in long-only mode, to check the prefix
match against short options before accepting it. the only reason
there's a slightly nontrivial loop being introduced rather than strchr
is that our getopt already supports multibyte short options, and
getopt_long_long should handle them consistently. a temp buffer and
strstr could have been used, but the code to set it up would be just
as large as what's introduced here and it would unnecessarily pull in
relatively large code for strstr.
8 years ago
..
aio
make all objects used with atomic operations volatile
11 years ago
complex
fix incorrect results for catan with some inputs
8 years ago
conf
fix sysconf for infinite rlimits
9 years ago
crypt
in crypt-sha*, reject excessive rounds as error rather than clamping
10 years ago
ctype
update case mappings to unicode 10.0
9 years ago
dirent
revise the definition of multiple basic locks in the code
8 years ago
env
prevent bypass of guarantee that suids start with fd 0/1/2 open
8 years ago
errno
add public interface headers to implementation files
8 years ago
exit
revise the definition of multiple basic locks in the code
8 years ago
fcntl
fix posix_fadvise syscall args on powerpc, unify with arm fix
10 years ago
fenv
add s390x port
10 years ago
internal
reintroduce hardening against partially-replaced allocator
8 years ago
ipc
fix signed overflow in ftok
9 years ago
ldso
fix dl_iterate_phdr in static PIE binaries
9 years ago
legacy
fix one-byte overflow in legacy getpass function
9 years ago
linux
add getrandom syscall wrapper
8 years ago
locale
fix nl_langinfo_l(CODESET, loc) reporting wrong locale's value
8 years ago
malloc
reintroduce hardening against partially-replaced allocator
8 years ago
math
fix fmaf wrong result
8 years ago
misc
getopt_long_only: don't prefix-match long-options that match short ones
8 years ago
mman
work around incorrect EPERM from mmap syscall
9 years ago
mq
use restrict everywhere it's required by c99 and/or posix 2008
14 years ago
multibyte
fix erroneous acceptance of f4 9x xx xx code sequences by utf-8 decoder
9 years ago
network
fix getaddrinfo error code for non-numeric service with AI_NUMERICSERV
9 years ago
passwd
fix regression in getspnam[_r] error code for insufficient buffer size
9 years ago
prng
revise the definition of multiple basic locks in the code
8 years ago
process
convert execvp error handling to switch statement
8 years ago
regex
fix regression in glob with literal . or .. path component
9 years ago
sched
add sched_getcpu vDSO support
10 years ago
search
fix lsearch and lfind to pass key as first arg to the compar callback
9 years ago
select
support linux kernel apis (new archs) with old syscalls removed
12 years ago
setjmp
fix access by setjmp and longjmp to __hwcap on arm built as thumb2
9 years ago
signal
add public interface headers to implementation files
8 years ago
stat
fix failure of fchmodat to report EOPNOTSUPP in the race path
11 years ago
stdio
setvbuf: minor comment typo fix
8 years ago
stdlib
add public interface headers to implementation files
8 years ago
string
fix OOB reads in Xbyte_memmem
9 years ago
temp
ignore access mode bits of flags in mkostemps and functions that use it
12 years ago
termios
define appropriate feature test macros to get CBAUD from termios.h
10 years ago
thread
store pthread stack guard sizes for pthread_getattr_np
8 years ago
time
implement wcsftime padding specifier extensions
8 years ago
unistd
fix out of bounds write for zero length buffer in gethostname
8 years ago