Commit Graph

2964 Commits

Author SHA1 Message Date
maya
7c604edb4c Merge pkg_install-20171030
Bump version to 20171030 for netpgpverify fixes.
Add zsh to default_acceptable_licenses.
Undef bootstrap hack.

Fix OpenSSL 1.1.0 build
OpenSSL 1.1.0 makes xkusage and ex_flags opaque.
Use X509_check_ca rather than a custom and nearly identical implementation.
This is available since OpenSSL 0.9.8 (even in RHEL5).
This is also done because we cannot implement it identically under
OpenSSL 1.1.0 due to missing getters.
Test EXFLAG_XKUSAGE rather than zero xkusage test no usage to avoid openssl
1.1.0 getter returning a different code on this case.
Use getter for xkusage in the non-zero test case.
Provide fallback definitions for getters.

PR pkg/52298, PR pkg/52648
2018-02-04 09:00:51 +00:00
maya
34c9ee37a0 Import pkg_install-20171030 2018-02-04 08:20:39 +00:00
mrg
07967fb18a apply __attribute__((__used__)) for rcsid, etc. 2018-02-04 08:19:42 +00:00
christos
bdb24028e2 split out the child runner. 2018-02-04 03:37:59 +00:00
christos
0c048d5af5 switch everyone to openssl.old 2018-02-04 03:19:51 +00:00
mrg
d3af2a8373 ATF needs C++98 for now, and GCC 6.4 defaults to C++11.
fix a problem -Werror=misleading-indentation found but has zero
effect on the running code.
2018-02-04 01:41:05 +00:00
mrg
6d188dd0d7 convert HAVE_GCC handling to modern GCC release numbering:
- HAVE_GCC=5 is now the default (vs. HAVE_GCC=53 we've been using for
  GCC 5.4 and GCC 5.5.)
- remove some more GCC 4.8 code.  we don't support GCC 4 here.
- adjust set lists to gcc=5 from gcc=53.

add some basic HAVE_GCC=6 handling (totally unused so far.)
2018-02-02 01:02:39 +00:00
christos
af5b018293 add a diff for smtpd 2018-02-01 03:32:31 +00:00
roy
d20bb8f953 Sync 2018-01-29 11:13:06 +00:00
roy
10383d8fc1 Import dhcpcd-7.0.1 with the following changes:
*  hooks: remove use of local builtin for better portability
*  dhcpcd: don't log errors working out carrier for departed interfaces
*  ipv4: allow configuration of static broadcast address
*  if: don't set MTU during interface discovery
*  if: don't activate non matching interfaces to commandline ones
*  eloop-bench: fix hangs when using a large number of cycles
*  dhcp: don't bind when we've just probed an address to inform
2018-01-29 11:11:22 +00:00
christos
2ff51f0c66 Add the NONE/WIRED drivers. 2018-01-14 03:05:06 +00:00
roy
094d397286 Sync 2018-01-01 11:50:56 +00:00
roy
d92ae095f2 Import dhcpcd-7.0.0 with the following changes:
*  dhcp: when unicasting on L3, unicast on L2 as well
  *  dhcp: when rebooting, don't set cidaddr
  *  dhcp6: don't listen on IPv6 addresses when not using DHCPv6
  *  dhcp: only set probe state when probing (fixes REBOOT reason)
  *  ipv6: disable kernel RA if interface is active
  *  hooks: set protocol to link for link layer events
2018-01-01 11:48:51 +00:00
joerg
d8ca7f13dd Mark files not tagged with r319952 as dead. 2017-12-17 21:28:52 +00:00
joerg
2b93006b3f Be consistent with the revision numbers in the import-llvm command. 2017-12-17 21:16:57 +00:00
joerg
73fa703ffb Update for LLVM/Clang 5.0.1. 2017-12-17 21:16:33 +00:00
joerg
15958edac2 Import clang r319952 from branches/release_50 2017-12-17 20:58:16 +00:00
joerg
3ec2e04849 Import LLVM r319952 from branches/release_50 2017-12-17 20:53:07 +00:00
christos
25f5939496 If we don't have any formatting characters, we are always ok. 2017-12-11 23:19:38 +00:00
rin
fe6dc02791 Use PRIxPTR instead of lx to print pointers. Fix debug build with LLVM.
Also use PRIxPTR instead of PRIuPTR, which is apparently misused.
2017-12-08 13:36:22 +00:00
jmcneill
76fae9132e When testing to see if a signal handler was previously installed in
h_winch, test sa_handler against all SIG_* actions defined in sys/signal.h
instead of just 0. Corrects an issue where vi crashes after a window is
resized.
2017-12-06 17:16:14 +00:00
roy
c378917b11 Sync 2017-12-06 10:35:05 +00:00
roy
ffdc9e0056 Import dhcpcd-7.0.0-rc4 with the following changes:
*  Don't flush prefix routes/routers if kernel does not support RA
  *  dhcp: improve errors around UDP checksum failure
  *  dhcp: announce existing addresses before rebooting
  *  bpf: rework loop so that we can close/reopen fd inside and abort
  *  ipv6nd: don't handle NA/RA for non active interfaces
  *  dhcp6: listen on all addresses in non master mode
  *  dhcpcd-run-hooks: set protocol in dhcpcd, don't guess
  *  Ensure that xid is unique across all interfaces
  *  dhcp6: redirect message to interface which uses the xid
  *  bsd: strip scope from LL addresses when detecting their addition
  *  ipv6nd: fix address lifetime overflow on carrier up
  *  dhcp6: fix confirmation of lease on carrier up
2017-12-06 10:33:29 +00:00
rin
1597af3dd8 Compare ap->len wide chars, not ap->len bytes. 2017-12-01 20:01:31 +00:00
rin
c14a835e62 Check format strings for ex_printf. 2017-12-01 18:39:49 +00:00
rin
a90a8d8c63 Remove ex_printf duplicate with ex_extern.h. 2017-12-01 18:35:58 +00:00
christos
888e2fefae add more DW_ATE_ constants 2017-11-30 19:45:53 +00:00
rin
59cd10f512 Fix missing of "search wrapped" message when searching from the last char of
file, taken from nvi2:
a59e892d23
2017-11-22 16:17:30 +00:00
rin
f8052d784e Fix backward memcpy in :e +cmd, taken from nvi2 (and OpenBSD):
7ab02500a2
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/vi/ex/ex.c#rev1.21
2017-11-22 13:13:18 +00:00
rin
a07ca21052 Fix segmentation fault in corner case of backward sentence deletion,
taken from nvi2 (and Debian Bug report ):
e84d40ec20
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193498
2017-11-22 12:47:30 +00:00
rin
ba5f7ef194 Remove more files that should be removed when tre was imported from github
repository.
2017-11-21 08:19:54 +00:00
rin
7419ae3a04 Use ISMULTIWIDTH() macro. No binary changes. 2017-11-21 07:48:07 +00:00
rin
a8ee716c25 A boundary between single- and multi-width chars is regarded as a word boundary.
Suggested on tech-userland@ without any objections.
2017-11-21 07:43:47 +00:00
rin
f10703c63c Fix screen corruption by rewriting only a part of a multi-width character. 2017-11-21 06:35:22 +00:00
rin
17bc61630c Bump WARNS to 5 (via ../Makefile.inc).
Remove unnecessary -Wno-stack-protector flag.
2017-11-21 03:09:41 +00:00
rin
4f43870bc3 Bump WARNS to 5. 2017-11-21 03:03:31 +00:00
rin
b2085f3f9f Add REG_INVARG and REG_STARTEND ifndef TRE_USE_SYSTEM_REGEX_H.
No functional changes at the moment.
2017-11-21 02:53:20 +00:00
rin
b3178392f5 Some systems need <stdint.h> for SIZE_MAX.
No functional changes on NetBSD.
2017-11-21 02:50:35 +00:00
rin
b6a6fbff71 Bump WARNS to 5. Add -Wno-old-style-definition to regex.c for gcc. 2017-11-21 02:47:14 +00:00
rin
63e761a651 Enable -Wuninitialized -Wformat-security for clang. 2017-11-21 02:45:03 +00:00
rin
0c92db7399 We always need -Wno-format-nonliteral for v_increment.c whether compiler is
gcc or clang.
2017-11-21 02:44:13 +00:00
rin
a1deadaca4 Cosmetic changes. No functional changes. 2017-11-21 02:42:08 +00:00
rin
4fc00db461 Enable to compile & run without USE_ICONV. 2017-11-21 02:36:45 +00:00
rin
d43bd23851 Fix resource leaks due to missing of iconv_close(3). 2017-11-21 02:11:44 +00:00
rin
03a096c4f1 Fix -Wsign-compare issue for BINC_GOTO in a similar manner to BINC_RET. 2017-11-21 02:04:39 +00:00
rin
bd6bbecf8a Fix use of uninitialized variable, found by clang. 2017-11-21 02:00:29 +00:00
rin
bc436ad3c5 Fix an apparent typo. 2017-11-19 21:54:31 +00:00
rin
98796d9c59 Add missing integer overflow checks to avoid out-of-bound write reported in
CVE-2016-8859, partially taken from musl libc:
https://git.musl-libc.org/cgit/musl/commit/src/regex/regexec.c?id=c3edc06d1e1360f3570db9155d6b318ae0d0f0f7
https://git.musl-libc.org/cgit/musl/commit/src/regex/regexec.c?id=6582baa752a8facb2c8a7b5b3dcf67331429cdc1
2017-11-19 14:03:35 +00:00
rin
27d137ae33 Fix memory leak when input contains illegal multibyte sequence, partially
taken from musl libc:
https://git.musl-libc.org/cgit/musl/commit/src/regex/regexec.c?id=546f6b322bcafa2452925c19f9607d9689c75f95
2017-11-19 13:22:58 +00:00
rin
99fb528edf ret should be reg_errcode_t. 2017-11-19 13:21:02 +00:00