CVS: cvs.openbsd.org: src

2019-09-10 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/09/10 22:19:19

Modified files:
usr.sbin/smtpd : ioev.h lka_report.c smtp_session.c smtpd.h 

Log message:
Sprinkle around some __attribute__((__format__ (printf(...))).

OK gilles@



CVS: cvs.openbsd.org: www

2019-09-10 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2019/09/10 18:19:57

Modified files:
faq: current.html 

Log message:
mention rss2email update - save plaintext feed list first



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 17:07:46

Modified files:
sys/scsi   : st.c 

Log message:
Shuffle a couple of lines to make the device -> st_softc dances look
the same.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/09/10 16:43:29

Modified files:
lib/libexpat/lib: xmlparse.c 

Log message:
Fix heap overflow in libexpat 2.2.7 triggered by XML_GetCurrentLineNumber
(or XML_GetCurrentColumnNumber), and deny internal entities closing
the doctype; CVE-2019-15903
fixed in commit c20b758c332d9a13afbbb276d30db1d183a85d43
OK tb@



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 16:39:13

Modified files:
sys/scsi   : st.c 

Log message:
No need to check for ST_MOUNTED before calling st_mount_tape() AND in
st_mount_tape(). Just keep the latter.

st_mount_tape() is called from inside stopen() which has already found
the relevant st_softc(), incremented the device reference count, and
checked if it is dying. No need to repeast that in
st_mount_tape(). Just pass the st_softc.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/09/10 16:35:07

Modified files:
regress/usr.sbin/syslogd: Makefile RSyslogd.pm funcs.pl 

Log message:
If rsyslogd is not installed, explicitly skip these syslogd
compatibility tests.  Fix some races and increase the timeout for
rsyslog tests.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/09/10 13:58:13

Modified files:
regress/usr.sbin/syslogd: LICENSE Syslogd.pm 
  args-client-tcp-error.pl 

Log message:
Fix more races in syslogd test.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/09/10 13:44:32

Modified files:
lib/libcrypto/man: EVP_PKEY_CTX_ctrl.3 

Log message:
document EVP_PKEY_CTX_get_signature_md(3);
jsing@ provided it in evp.h rev. 1.77



CVS: cvs.openbsd.org: src

2019-09-10 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2019/09/10 13:36:12

Modified files:
sys/arch/amd64/amd64: vmm.c 

Log message:
Do not decrement the number of VMs counter twice in one of vm_create()
error paths. If creation of the first VM fails, the counter will wrap
around to a huge value. The same value could later be passed to malloc()
through vm_get_info() causing a panic.

While here, only decrement the same counter in vm_teardown() if the VM
has a valid ID. Otherwise it has not been accounted for.

ok mlarkin@

Reported-by: syzbot+d325bc014d9eca9f3...@syzkaller.appspotmail.com



CVS: cvs.openbsd.org: src

2019-09-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/09/10 13:35:35

Modified files:
usr.bin/tmux   : window.c 

Log message:
Make client exit if pane where input is going is closed.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2019/09/10 13:30:12

Modified files:
usr.sbin/smtpd : lka_filter.c 

Log message:
do not use tree_xget() between filters resume as a session may legitimately
go away due to a disconnection before a filter responds.

diff from martijn@, committing on his behalf



CVS: cvs.openbsd.org: xenocara

2019-09-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2019/09/10 13:17:29

Modified files:
.  : MODULES 3RDPARTY 

Log message:
update



CVS: cvs.openbsd.org: xenocara

2019-09-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2019/09/10 13:14:52

Modified files:
distrib/sets/lists/xbase: mi 
distrib/sets/lists/xshare: mi 

Log message:
sync



CVS: cvs.openbsd.org: xenocara

2019-09-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2019/09/10 13:14:03

Modified files:
lib/fontconfig/src: shlib_version 
lib/libXft : Makefile.bsd-wrapper 
lib/libXfont2  : Makefile.bsd-wrapper 
lib/freetype   : CMakeLists.txt ChangeLog ChangeLog.20 
 ChangeLog.21 ChangeLog.22 ChangeLog.23 
 ChangeLog.24 ChangeLog.25 ChangeLog.26 
 ChangeLog.27 ChangeLog.28 Jamfile Jamrules 
 Makefile README README.git autogen.sh 
 modules.cfg shlib_version vms_make.com 
lib/freetype/builds: detect.mk exports.mk freetype.mk 
 link_dos.mk link_std.mk modules.mk 
 toplevel.mk 
lib/freetype/builds/amiga: README makefile makefile.os4 
   smakefile 
lib/freetype/builds/amiga/include/config: ftconfig.h ftmodule.h 
lib/freetype/builds/amiga/src/base: ftdebug.c ftsystem.c 
lib/freetype/builds/ansi: ansi-def.mk ansi.mk 
lib/freetype/builds/beos: beos-def.mk beos.mk detect.mk 
lib/freetype/builds/cmake: iOS.cmake testbuild.sh 
lib/freetype/builds/compiler: ansi-cc.mk bcc-dev.mk bcc.mk 
  emx.mk gcc-dev.mk gcc.mk intelc.mk 
  unix-lcc.mk visualage.mk 
  visualc.mk watcom.mk win-lcc.mk 
lib/freetype/builds/dos: detect.mk dos-def.mk dos-emx.mk 
 dos-gcc.mk dos-wat.mk 
lib/freetype/builds/mac: README freetype-Info.plist ftmac.c 
lib/freetype/builds/os2: detect.mk os2-def.mk os2-dev.mk 
 os2-gcc.mk 
lib/freetype/builds/symbian: bld.inf freetype.mmp 
lib/freetype/builds/unix: configure.ac configure.raw detect.mk 
  freetype-config.in freetype2.m4 
  ft-munmap.m4 ftconfig.h ftconfig.in 
  ftsystem.c install.mk unix-cc.in 
  unix-def.in unix-dev.mk unix-lcc.mk 
  unix.mk unixddef.mk 
lib/freetype/builds/vms: ftconfig.h ftsystem.c 
lib/freetype/builds/wince: ftdebug.c 
lib/freetype/builds/wince/vc2005-ce: freetype.vcproj index.html 
lib/freetype/builds/wince/vc2008-ce: freetype.vcproj index.html 
lib/freetype/builds/windows: detect.mk ftdebug.c w32-bcc.mk 
 w32-bccd.mk w32-dev.mk w32-gcc.mk 
 w32-icc.mk w32-intl.mk w32-lcc.mk 
 w32-mingw32.mk w32-vcc.mk 
 w32-wat.mk win32-def.mk 
lib/freetype/builds/windows/vc2010: freetype.vcxproj 
freetype.vcxproj.filters 
index.html 
lib/freetype/builds/windows/visualc: freetype.dsp freetype.sln 
 freetype.vcproj index.html 
lib/freetype/builds/windows/visualce: freetype.dsp 
  freetype.vcproj index.html 
lib/freetype/devel: ft2build.h ftoption.h 
lib/freetype/docs: CHANGES CUSTOMIZE DEBUG INSTALL.ANY 
   INSTALL.CROSS INSTALL.GNU INSTALL.UNIX 
   INSTALL.VMS MAKEPP TODO VERSIONS.TXT 
   documentation.html formats.txt 
   freetype-config.1 ft2faq.html raster.txt 
   release 
lib/freetype/docs/design: design-2.html design-3.html 
  design-4.html design-5.html 
lib/freetype/docs/glyphs: glyphs-6.html glyphs-7.html 
lib/freetype/docs/tutorial: example4.cpp example4.pro 
example5.cpp example5.svg step1.html 
step2.html step3.html 
lib/freetype/include: ft2build.h 
lib/freetype/include/freetype: Makefile freetype.h ftadvanc.h 
   ftbbox.h ftbdf.h ftbitmap.h 
   ftbzip2.h ftcache.h ftchapters.h 
   ftcid.h ftdriver.h fterrdef.h 
   fterrors.h ftfntfmt.h ftgasp.h 
   ftglyph.h ftgxval.h ftgzip.h 
   ftimage.h ftincrem.h ftlcdfil.h 
   ftlist.h ftlzw.h ftmac.h ftmm.h 
   ftmodapi.h ftmoderr.h ftotval.h 
   ftoutln.h ftparams.h ftpfr.h 
   ftrender.h ftsizes.h ftsnames.h 
   

CVS: cvs.openbsd.org: xenocara

2019-09-10 Thread Matthieu Herrb
CVSROOT:/cvs
Module name:xenocara
Changes by: matth...@cvs.openbsd.org2019/09/10 13:09:14

Modified files:
proto/xorgproto/include/X11/extensions: randrproto.h 

Log message:
MFC: randrproto: Fix missing #undef RRLease

fixes build with gcc3. Problem noticed and fix confirmed by aoyama@



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 13:04:36

Modified files:
sys/scsi   : st.c 

Log message:
return is not a funciton call. Avoid pointless parenthesis.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/09/10 13:01:24

Modified files:
regress/usr.bin/lastcomm: LICENSE Makefile crash.c 
Added files:
regress/usr.bin/lastcomm: pivot.h stackmap.c 

Log message:
Test that lastcomm(1) shows M flag if the stack pointer was not in
stack memory.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 12:45:45

Modified files:
sys/scsi   : st.c 

Log message:
Explicitly check error results against 0.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/09/10 12:35:17

Modified files:
regress/usr.sbin/syslogd: args-selector-syslog.pl 

Log message:
Fix race in syslogd test.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2019/09/10 12:20:07

Modified files:
usr.bin/locate/locate: updatedb.sh 

Log message:
Skip fcodes parent dir permission check if writing to stdout.
Fixes building the locate db from /etc/weekly.
OK semarie@ kn@ kmos@



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 10:55:42

Modified files:
sys/scsi   : st.c 

Log message:
Some stray bit twiddles that were using yet another idiom.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 10:08:43

Modified files:
sys/scsi   : st.c 

Log message:
check pointer against NULL and error values against 0.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 09:44:43

Modified files:
sys/scsi   : st.c 

Log message:
Last (?) small bit twiddling modernization.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Martijn van Duren
CVSROOT:/cvs
Module name:src
Changes by: mart...@cvs.openbsd.org 2019/09/10 08:35:32

Modified files:
usr.bin/ldap   : aldap.c 
usr.sbin/ypldap: aldap.c 

Log message:
During libutil/ber.c r1.12 I made sure that every element that's requested
by ber_scanf_elements must exist.

aldap.c apparently abused the old behaviour by always trying to retrieve
the referral element, which according to RFC4511 section 4.1.9 is optional.

This diff only requests the referral element if we get a referral response.

OK rob@



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 08:16:36

Modified files:
sys/scsi   : st.c 

Log message:
!ISSET() for various flags.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2019/09/10 06:58:55

Modified files:
sys/scsi   : st.c 

Log message:
SET/CLR/ISSET all at once for st->quirks, and a few other rare flags.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2019/09/10 06:08:26

Modified files:
usr.sbin/smtpd : smtp_client.c 

Log message:
immediatly close the connection if the cert is not valid, rather than
ending the smtp session.

ok gilles@



CVS: cvs.openbsd.org: src

2019-09-10 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2019/09/10 01:50:33

Modified files:
usr.bin/tmux   : cmd-parse.y cmd-queue.c format.c key-bindings.c 
 window-copy.c 

Log message:
Set up format tree for %if, GitHub issue 1896.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/09/10 01:49:15

Modified files:
sys/dev/pci: azalia.c 

Log message:
Prevents the block size from exceeding the requested one when a huge
block size is requested. This avoids exceeding half the buffer size.



CVS: cvs.openbsd.org: src

2019-09-10 Thread Alexandre Ratchov
CVSROOT:/cvs
Module name:src
Changes by: ratc...@cvs.openbsd.org 2019/09/10 01:39:39

Modified files:
sys/dev: audio.c 

Log message:
If the requensted block size is too large, then use half the
buffer size instead of failing. Problem found and fix tested
by Joe Davis , thanks!



CVS: cvs.openbsd.org: src

2019-09-10 Thread Gilles Chehade
CVSROOT:/cvs
Module name:src
Changes by: gil...@cvs.openbsd.org  2019/09/10 01:03:16

Modified files:
usr.sbin/smtpd : lka_report.c 

Log message:
simplify lka reporting functions by moving the reqid inside the broadcast
function: reqid is a mandatory part of the header. lka reporting functions
now only append their own specific parameters.

ok martijn@