OpenBSD/src 9JX6P56usr.sbin/lpr/lpd printjob.c

   lpd: require data file path name to be in the spool dir

   When processing the control file, any file to be printed must be
   located in the spool directory (e.g. dfA000foobar) either as a
   regular file or a symbolic link to another file to be printed.  This
   matches the handling of the 'U' (unlink) directive.

   OK deraadt@
VersionDeltaFile
1.63+3-1usr.sbin/lpr/lpd/printjob.c
+3-11 files

OpenBSD/src yEMTnmAusr.bin/tmux cmd-display-panes.c

   Preserve the original text in the first line for display-panes.
VersionDeltaFile
1.51+5-4usr.bin/tmux/cmd-display-panes.c
+5-41 files

OpenBSD/src 8RSgeJrsys/dev/pci if_mwx.c if_mwxreg.h

   Inline mwx_mcu_init() into mwx_init_hardware() and add
   mt7925_mcu_set_eeprom() which must be called during hardware init.
   Tested on 7921 and 7925 (which now fails in mt7921_mac_init).
VersionDeltaFile
1.27+43-35sys/dev/pci/if_mwx.c
1.17+2-1sys/dev/pci/if_mwxreg.h
+45-362 files

OpenBSD/src 7FuAeUjusr.bin/tmux tty.c tty-draw.c

   Add a context for cell/palette/hyperlinks when drawing to tty to avoid
   passing so much in parameters.
VersionDeltaFile
1.471+45-56usr.bin/tmux/tty.c
1.11+22-16usr.bin/tmux/tty-draw.c
1.132+17-16usr.bin/tmux/screen-redraw.c
1.1341+17-12usr.bin/tmux/tmux.h
1.69+11-9usr.bin/tmux/popup.c
1.266+11-6usr.bin/tmux/screen-write.c
+123-1154 files not shown
+135-13510 files

OpenBSD/src ZGaljMpsys/dev/pci if_mwx.c

   Add various checks in mwx_load_firmware() to ensure that the buffer
   passed to mwx_mcu_send_firmware() does not move beyond the firmware
   image.  For regions flagged with FW_FEATURE_NON_DL don't forget to
   increase the offset.
VersionDeltaFile
1.26+42-8sys/dev/pci/if_mwx.c
+42-81 files

OpenBSD/src dKzvk85sys/dev/pci if_mwx.c

   Kill MWX_IS_CONNAC2 macro and just use sc->sc_hwtype != MWX_HW_MT7925
   like everywhere else.

   Right now only MT7925 is different from MT7920/21/22 so just use one
   common way to do these checks.
VersionDeltaFile
1.25+2-5sys/dev/pci/if_mwx.c
+2-51 files

OpenBSD/src oOpuymlsys/arch/powerpc64/conf RAMDISK

   sys/powerpc64: add em* to RAMDISK

   OK: deraadt@
VersionDeltaFile
1.14+2-1sys/arch/powerpc64/conf/RAMDISK
+2-11 files

OpenBSD/src djS32rMusr.bin/tmux cmd-server-access.c

   Use name as marker for failure not type (which must be set to be in the error).
VersionDeltaFile
1.6+5-5usr.bin/tmux/cmd-server-access.c
+5-51 files

OpenBSD/src KXN5BP1usr.bin/tmux cmd-kill-session.c cmd-kill-window.c

   Add missing headers.
VersionDeltaFile
1.31+3-1usr.bin/tmux/cmd-kill-session.c
1.30+3-1usr.bin/tmux/cmd-kill-window.c
+6-22 files

OpenBSD/src q0s97Obusr.bin/tmux tmux.1

   Clarify -a for kill-window, kill-session.
VersionDeltaFile
1.1077+3-3usr.bin/tmux/tmux.1
+3-31 files

OpenBSD/src co5IIvilib/libcrypto/pkcs7 pk7_smime.c

   Avoid freeing a caller-owned buffer in PKCS7_verify()

   If a PKCS#7 S/MIME message comes with an empty set of digestAlgorithms
   in the SignedData, PKCS7_verify() would incorrectly free a caller-owned
   buffer. Fix the freeing logic to avoid this situation.

   From Igor Ustinov via OpenSSL
VersionDeltaFile
1.30+7-7lib/libcrypto/pkcs7/pk7_smime.c
+7-71 files

OpenBSD/src iupIsBNlib/libcrypto/asn1 a_mbstr.c

   Add some missing bounds checks to ASN1_mbstring_copy()

   If the in string is unreasonably long, assigning strlen(in) to an int
   may overflow, so exclude this situation.

   Moreover, the code would unconditionally multiply nchar by 2 or 4,
   which could again overflow an int. Check for this situation and error
   out to avoid an out of bounds write.

   More may be needed in here, which will be revisited later.

   Based on a diff by Viktor Dukhovni via OpenSSL.
VersionDeltaFile
1.29+20-3lib/libcrypto/asn1/a_mbstr.c
+20-31 files

OpenBSD/src MGTcaxSusr.bin/tmux cmd-kill-window.c cmd-kill-pane.c

   Add -f for filter with -a to kill-pane, kill-window, kill-session.
   GitHub issue 4782.
VersionDeltaFile
1.29+76-31usr.bin/tmux/cmd-kill-window.c
1.33+61-15usr.bin/tmux/cmd-kill-pane.c
1.30+54-11usr.bin/tmux/cmd-kill-session.c
1.1076+23-2usr.bin/tmux/tmux.1
+214-594 files

OpenBSD/src mnJsjBTlib/libcrypto/cms cms_pwri.c

   Avoid out-of-bounds read in CMS password-based decryption

   The RFC 3211 PWRI integrity check when unwrapping the password-derived key
   accesses seven bytes from a heap-allocated buffer. If an (invalid) block
   cipher with short blocks is in use 2 * blocksize may not be sufficient room
   for 7 bytes. In that silly case, the function performs an OOB read. Add
   length check to avoid this situation

   From Igor Ustinov via OpenSSL.
VersionDeltaFile
1.37+4-0lib/libcrypto/cms/cms_pwri.c
+4-01 files

OpenBSD/src leQ9bA9lib/libcrypto/cms cms_pwri.c

   Avoid NULL dereference in password-based CMS decryption

   The keyDerivationAlgorithm field is OPTIONAL in the ASN.1 but required
   for password-based CMS. Check that the field is present before using it
   to avoid a crash.

   From Igor Ustinov via OpenSSL
VersionDeltaFile
1.36+5-1lib/libcrypto/cms/cms_pwri.c
+5-11 files

OpenBSD/src Cxx5Xd2usr.bin/tmux utf8-combined.c tty.c

   Two fixes for RI codepoints. Firstly, do not combine more than two of
   them - previously we were ending up with four codepoints in one cell
   which tmux believed to be width 2, but terminals considered width 4.
   Secondly, invalidate cursor position before redrawing the cell when the
   second codepoint is received, terminals vary in how they manage
   backspace and cursor movement across these characters, so it is better
   to use absolute rather than relative positioning. GitHub issue 4853.
VersionDeltaFile
1.10+24-2usr.bin/tmux/utf8-combined.c
1.470+3-1usr.bin/tmux/tty.c
+27-32 files

OpenBSD/src F7bFj8hsys/dev/pci/drm/i915 i915_driver.c

   call rasops_show_screen() in inteldrm_activate() wakeup

   From Walter Alejandro Iglesias who reports this stops garbage on screen
   when resuming from hibernate without switching vt, on a unknown machine.
   Avoids a similar problem on matthieu's Framework Alder Lake, and mvs'
   Gemini Lake and Alder Lake machines.
VersionDeltaFile
1.31+2-0sys/dev/pci/drm/i915/i915_driver.c
+2-01 files

OpenBSD/src wk72xJrusr.bin/tmux window.c cmd-split-window.c

   Add -B to new-pane/split-window to block until the command exits, like
   run-shell -b.
VersionDeltaFile
1.333+35-1usr.bin/tmux/window.c
1.130+13-3usr.bin/tmux/cmd-split-window.c
1.1075+13-2usr.bin/tmux/tmux.1
1.210+3-1usr.bin/tmux/server.c
1.1340+3-1usr.bin/tmux/tmux.h
+67-85 files

OpenBSD/src s5k7hTUusr.bin/tmux window.c

   Do not use NULL arguments, bug spotted by Dane Jensen.
VersionDeltaFile
1.332+2-2usr.bin/tmux/window.c
+2-21 files

OpenBSD/src BepC87Ngnu/llvm/clang/lib/Driver/ToolChains/Arch RISCV.cpp

   fix a mismerged patch for defaulting to -mno-relax on OpenBSD; from Brad
VersionDeltaFile
1.7+1-1gnu/llvm/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
+1-11 files

OpenBSD/src Y2hJrstregress/lib/libutil/fmt_scaled fmt_test.c

   fmt_scaled: add some regress for signed overflow edge cases.

   looks good to claudio, ok djm
VersionDeltaFile
1.22+6-1regress/lib/libutil/fmt_scaled/fmt_test.c
+6-11 files

OpenBSD/src xyHQ5Mtlib/libutil fmt_scaled.c

   Avoid signed overflow in fmt_scaled

   Adding the scaled fractional part to whole may result in a signed overflow.
   Guard against this by adding checks before subtracting or adding.

   problem pointed out by a friend of claudio's
   fix looks good to claudio, ok djm
VersionDeltaFile
1.26+12-3lib/libutil/fmt_scaled.c
+12-31 files

OpenBSD/src 4sJ1QHYregress/lib/libutil/fmt_scaled fmt_test.c

   fmt_scaled: make regress compile again with old gcc

   looks good to claudio
   ok djm
VersionDeltaFile
1.21+7-7regress/lib/libutil/fmt_scaled/fmt_test.c
+7-71 files

OpenBSD/src Y882ikxlib/libcrypto/ecdh ecdh.c

   ecdh: add error codes for point at infinity/not on curve

   The point at infinity would previously raise EC_R_POINT_AT_INFINITY via
   EC_POINT_get_affine_coordinates(). For consistency, also raise an error
   for off-curve points.

   pointed out by/ok kenjiro
VersionDeltaFile
1.15+7-3lib/libcrypto/ecdh/ecdh.c
+7-31 files

OpenBSD/src vSXAnPslib/libcrypto/ec ec_lib.c

   Fix strange error check in EC_POINT_get_affine_coordinates

   EC_POINT_is_at_infinity() has a Boolean return nowadays, so drop > 0.

   ok jsing kenjiro
VersionDeltaFile
1.132+2-2lib/libcrypto/ec/ec_lib.c
+2-21 files

OpenBSD/src 2Aa1jklregress/lib/libssl/unit ssl_kex.c

   ssl_kex: exercise an invalid point as well
VersionDeltaFile
1.4+34-1regress/lib/libssl/unit/ssl_kex.c
+34-11 files

OpenBSD/src 0ONhKbYregress/lib/libssl/unit ssl_kex.c

   ssl_kex: ensure decode_error alert is raised
VersionDeltaFile
1.3+13-1regress/lib/libssl/unit/ssl_kex.c
+13-11 files

OpenBSD/src EyGXaxxsys/nfs nfs_socket.c

   switch nfs_getreq() to nfsd_adv()

   from miod@ ok jsg@

   This round of commits was prompted by a double-free report
   from Andrew Griffiths at Calif.

   server nfs request mbuf pointers were stored in two structs:
   nmi_mrep in struct nfsm_info
   nd_mrep in struct nfsrv_descript
   but only set to NULL after m_freem() in nmi_mrep

   This problem is avoided by removing the use of struct nfsm_info
   in the server paths and passing struct nfsrv_descript to
   new versions of the nfsm functions.
VersionDeltaFile
1.158+8-18sys/nfs/nfs_socket.c
+8-181 files

OpenBSD/src 1KLkffBsys/nfs nfs_serv.c

   remove use of struct nfsm_info in nfs_serv.c (the non-trivial part)

   with and ok miod@
VersionDeltaFile
1.149+23-137sys/nfs/nfs_serv.c
+23-1371 files

OpenBSD/src gH6cVX8sys/nfs nfs_serv.c

   remove use of struct nfsm_info in nfs_serv.c

   with and ok miod@
VersionDeltaFile
1.148+123-200sys/nfs/nfs_serv.c
+123-2001 files