1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00
Commit Graph

245137 Commits

Author SHA1 Message Date
nicm 8a924ff760 Allow rectangle selection to extend past end of current line to behave
the same as vi with virtualedit=block set. From Mark Kelly in GitHub
issue 5227.
2026-06-16 09:28:17 +00:00
dtucker fb37e3accf Include stdarg.h for va_list (needed for xmalloc.h). 2026-06-16 09:00:47 +00:00
nicm 19d6ce4a78 Initialize wname so it we are not freeing garbage if it is not used. 2026-06-16 09:00:25 +00:00
nicm e867bf5b68 Fix resizing floating pane with a left scrollbar, from Michael Grant. 2026-06-16 08:57:07 +00:00
nicm 0c619e1cf8 Fix missing border when drawing floating panes. From Michael Grant. 2026-06-16 08:53:14 +00:00
dtucker 8bf0905d41 Include stdlib.h for malloc/free and sort headers. 2026-06-16 08:15:35 +00:00
nicm 3cf96d7d15 Fix default window check in break-pane, from Dane Jensen. 2026-06-16 07:07:49 +00:00
nicm 07c6c78897 Add layout_cell_is_tiled and layout_cell_has_tiled_child helper
functions, from Dane Jensen.
2026-06-16 07:06:32 +00:00
jsg 0baeb99d04 botton -> bottom 2026-06-16 05:01:56 +00:00
millert 268d15e32f Fix behavior of ')' used in a range when setence reaches EOF.
For a sentence spanning more than one line at the end of the file,
when the cursor is placed at the first character of any line except
for the last one, running '!)<cmd>' won't affect the last line.

From Walter Alejandro Iglesias
2026-06-16 02:15:14 +00:00
millert e0d9c349b9 Check for E_CLRFLAG in ecp->cmd->flags, not ecp->iflags.
Fixes a problem where an extra line is printed at the end of the
output when the "number" command is given the "l" (literal display)
flag.

From Jeremy Mates Walter Alejandro Iglesias and
2026-06-16 02:03:35 +00:00
nicm 4c8f4d2f10 Rename window_pane_visible to match other functions, from Dane Jensen. 2026-06-15 21:47:01 +00:00
nicm da8468681b Be more strict about what names and titles we allow and reject them
immediately when possible, but allow # again for those directly set by
commands (but not escape sequences). From Barrett Ruth in GitHub issue
5175.
2026-06-15 21:41:39 +00:00
nicm 3770940176 Add pane-border-lines none like popups (-B to new-pane). 2026-06-15 17:34:25 +00:00
tb fe1f371be0 rpki-client: reject certs with duplicate extension OIDs
We check this for extensions we know about in cert_parse_extensions().
We keep doing it there since we need to keep track of the extensions we
encountered anyway.

While cert_parse_extensions() rejects certs with critical extensions we
don't know about, we allow duplicate non-critical ones mainly because
that's annoying to keep track of. LibreSSL's libcrypto checks for this
and rejects the cert when caching the extensions, OpenSSL 4 adds a new
EXFLAG_DUPLICATE flag and accepts the cert, and OpenSSL 3 simply ignores
duplicates. In short: we get to do it ourselves.

This check is basically lifted from libcrypto's x509_purp.c with a few
extra contortions due to const sprinkling and making things opaque. The
warnx is the same as the one already present in cert_parse_extensions().

We do not NULL check X509_EXTENSION_get_object() because the extension
parsed, so an OID is present.

ok job
2026-06-15 17:30:04 +00:00
florian 3894b14b3d Prevent the engine from sending us a negative amount of routes.
Pointed out by Andrew Griffiths, thanks!
2026-06-15 17:09:29 +00:00
florian c0a817ed4d We need to accept one more route from the engine process.
Off-by-one pointed out by Andrew Griffiths, thanks!
2026-06-15 17:08:15 +00:00
florian a69b13d93c Make sure UDP header length field at least covers the UDP header.
We clamp the amount of data we are willing to parse to the length of
the UDP packet as indicated by the UDP header length field. While we
made sure that the length field did not point past the received data,
we never checked if the length is smaller than the udp header. Since
we are using BPF, the kernel also does not doe this for us. This might
in turn lead to an underflow and a subsequent crash of the engine
process.

Pointed out and diff provided by Andrew Griffiths, thanks!
2026-06-15 17:07:34 +00:00
nicm 071960dc61 If the client is blocked, defer the redraw because it may end up
partially discarded leading to redraw artifacts.
2026-06-15 15:05:12 +00:00
nicm 9bd110165a Convert cursor position back to pane coordinates for tty_cmd_cell. 2026-06-15 14:56:30 +00:00
job 10c123100a Add some guardrails to rsync_base_uri() against future programmer error
OK tb@
2026-06-15 14:45:19 +00:00
job 91fddc0d93 Tighten well-formedness checks on AIA & SIA extensions in certs
Valid Rsync URIs always contain a module component.

To avoid duplication of URI validation code, refactor rsync_base_uri()
to optionally allocate & dup the base URI portion.

Thanks to Ties de Kock for reporting.

OK tb@ claudio@
2026-06-15 14:30:53 +00:00
mvs 4baec750da Drop unused 'struct proc' argument from msg_copyin() and msg_copyout().
ok claudio
2026-06-15 13:41:47 +00:00
mvs 2c78b5fefe Make functions arguments list to be newer than K&R. Otherwise modern
Clang compiler produces warnings.

ok claudio
2026-06-15 13:40:41 +00:00
nicm f0c49bac36 Tidy up screen_redraw_get_visible_ranges by using a couple of
temporaries for start and end of range.
2026-06-15 12:07:49 +00:00
nicm e0d0f3a7d2 Use correct x position when drawing clipped line. 2026-06-15 11:45:51 +00:00
kirill 4bc4a388a4 sys/sparc64: accept ide nodes in IDE bootpaths
OpenBIOS reports QEMU IDE disks with an intermediate ide node, while the
sparc64 bootpath code only treats ata as a channel node.

The disk is attached as wd0, but the final disk component is not nailed
as the boot device, so the kernel asks for the root device.

No QEMU level option seems possible to enforce ata disk.

OK: claudio@
2026-06-15 11:35:19 +00:00
rsadowski 78600f9306 relayd: knfmt, no functional change
OK tb
2026-06-15 11:02:13 +00:00
jsg 81bb5dc40f fix indentation in local version of amdgpu_gem_fault() 2026-06-15 10:36:51 +00:00
nicm c8249f6768 Add -B to new-pane to select the floating pane border. 2026-06-15 09:21:40 +00:00
job 320aa6b0a9 Clear last_modified after each response on a persistent HTTP connection
(In case a later response doesn't contain its own "Last-Modified" header field.)

Reported by Ties de Kock.

OK tb@ claudio@
2026-06-15 09:20:21 +00:00
kevlo bff906b101 Add missing break
ok claudio@
2026-06-15 08:53:14 +00:00
nicm e258f212aa Add top-floating and bottom-floating to pane-border-status to show
status line only on floating panes.
2026-06-15 08:16:05 +00:00
nicm e015fbd1ed When redrawing a whole pane line, fall into tty_draw_line for any
characters that are not plain ASCII. Fixes redraw issues with partial
tabs and other wide characters when a pane is partly outside the window.
2026-06-15 07:40:45 +00:00
djm 955cfc7c55 use different strategy to check whether keys are present or absent
in the agent; helps some -portable tests on platforms that have
stupid grep(1)
2026-06-15 06:36:52 +00:00
jsg 632f324b7c more closely match how linux maps vram on xgmi parts
map cacheable not wc for xgmi parts connected to cpu on x86
don't try to map vram if there isn't any
2026-06-15 06:30:58 +00:00
djm f1a14588cf avoid use of paste(1); helps portable 2026-06-15 06:24:20 +00:00
jsg fc4a1b0d90 call amdgpu_xcp_dev_register() and amdgpu_amdkfd_drm_client_create()
in amdgpu_attachhook(), matching amdgpu_pci_probe()

CONFIG_HSA_AMD / amdkfd remains disabled
2026-06-15 02:46:12 +00:00
djm e83fdb4948 fix multiple problems with testing hostkey types that are
not enabled by default.

1) Add all hostkey types in the "multiple hostkeys" subtest.
   Previously known_hosts was accidentally clobbered, causing
   only the last added hostkey type to be used.
2) Explicitly enable the hostkey types under test via
   HostKeyAlgorithms
2026-06-15 01:55:44 +00:00
jsg be4ef8762b move drm_dev_register() call to before connector test and check return 2026-06-15 01:52:53 +00:00
jsg 385b42751a call amdgpu_init_debug_options() in amdgpu_attachhook()
matches the call in amdgpu_pci_probe()
2026-06-15 01:30:51 +00:00
nicm 82a9e4d18b Fix various errors in redrawing:
- Fix the active pane colour when only two panes and scrollbars enabled.

- Clip left and right scrollbars the same for floating panes.

- Do not subtract scrollbar width twice when working out width of status
  line.

- Check if a character is inside a visible range correctly (do not
  include the next position outside the range).
2026-06-14 20:53:20 +00:00
nicm 44534912ef Skip floating panes when working out the top or bottom cell. Fixes
missing bottom status pane status line when floating panes exist.
2026-06-14 20:37:57 +00:00
nicm 70f06a5829 Add a helper to get pane-border-status for a window for some other
changes to come.
2026-06-14 19:31:37 +00:00
nicm 3f5cf1464b Take account of borders when resizing floating panes. 2026-06-14 18:59:15 +00:00
jsing 3dc2c2828b Correct secondary key share handling for HelloRetryRequests.
With the introduction of a secondary key share, we fail to ensure that the
HelloRetryRequest does not specify the group that was used for the
secondary key share. We also fail to free the secondary key share early in
this case, meaning that it lingers in memory until the SSL is reset or
freed. Fix both of these issues.

ok tb@
2026-06-14 15:51:17 +00:00
jsing 20117dcb7f Improve TLSv1.3 server handling of no shared groups.
While we currently correctly handle the no-shared-group case, it currently
fails late when we try to create the key share. Improve detection and
handling so that we fail sooner and send an alert to the client when
processing client key shares.

While here rename preferred_group_found to shared_group_found - we look for
the client preferred group, but any group that we select will always be in
the client list (even if it's the last one).

Reported by the tlspuffin team.

ok tb@
2026-06-14 15:47:49 +00:00
jsing aca74d656c Send illegal parameter alerts for various HelloRetryRequest violations.
Be more RFC compliant and send illegal parameter alerts when the client
receives a HelloRetryRequest that requests a group that we did not offer
or a group that we sent a key share for in the ClientHello. These were
annotated as missing, but not previously implemented.

Prompted by a report from the tlspuffin team.

ok tb@
2026-06-14 14:53:07 +00:00
jsing 9fa1dce37a Improve renegotation regress.
Include coverage of Renegotiation Indication and legacy connection
handling.
2026-06-14 14:33:36 +00:00
jsing d5512f45c6 Mop up SSL_CTX_set_options(3).
SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS is now a no-op, tidy up
SSL_OP_LEGACY_SERVER_CONNECT and reflect the current state of SSL_OP_ALL
Delete the entire "SECURE RENEGOTIATION" section that contained ancient
ramblings.

ok beck@ tb@
2026-06-14 14:30:52 +00:00