Re: off by one in vi(1)

2013-05-11 Thread Todd C. Miller
On Tue, 07 May 2013 19:10:44 +0300, Arto Jonsson wrote: > While writing an email vi(1) crashed with segmentation fault. > > When ^W (WERASE) is hit in insert mode it's possible that the line > buffer is accessed out of bounds. If 'max' == 0 and 'tp->cno' == 1 the > 'tp->cno' value is first reduce

urtwn(4) patch

2013-05-11 Thread Peter J. Philipp
Hi, I previously sent out a patch for this device support here: Linkname: 'USB Wireless Micro Adapter IWL 4000 support' - MARC URL: http://marc.info/?l=openbsd-tech&m=135342591418924&w=2 Now I've looked at the usbdevs file a little closer and finally replaced my PJPUK device with some

Re: realloc errno

2013-05-11 Thread Otto Moerbeek
On Tue, May 07, 2013 at 12:43:48AM -0400, Ted Unangst wrote: > If growing the current region fails, realloc will leave errno set, > even though the function will eventually succeed. (Late reply because I was away on vacation) I don't think this is correct. realloc itself already takes care of th

Re: add nl(1)

2013-05-11 Thread Todd C. Miller
On Fri, 10 May 2013 17:27:26 +0300, Arto Jonsson wrote: > Here's an updated diff. Compared to the previous diff '-' is now handled > as stdin. From the freebsd version I noticed that the previous diff also > had useless exit() call which I removed. Comments? The FreeBSD version has other improvem

Re: emacs fails to build after switching to 5.3

2013-05-11 Thread Han Boetes
Mark Kettenis wrote: > > Date: Sat, 11 May 2013 04:41:03 +0200 > > From: Han Boetes > > > > Han Boetes wrote: > > > I noticed emacs failed to build after switching to 5.3. I > > > discussed the matter with the emacs devs and they added some > > > debug code which is triggered by CFLAGS='-g3 -DUNE

Re: emacs fails to build after switching to 5.3

2013-05-11 Thread Mark Kettenis
> Date: Sat, 11 May 2013 04:41:03 +0200 > From: Han Boetes > > Han Boetes wrote: > > I noticed emacs failed to build after switching to 5.3. I > > discussed the matter with the emacs devs and they added some > > debug code which is triggered by CFLAGS='-g3 -DUNEXELF_DEBUG' So > > when it's buildi

Re: emacs fails to build after switching to 5.3

2013-05-11 Thread Han Boetes
Jérémie Courrèges-Anglas wrote: > Does that mean that *only* building with -DUNEXELF_DEBUG fails? If so, > the problem is perhaps not that important... In that case I would not have reported a problem. > I don't have a 64 bits host to repeat it. Please make it clear that the > very last version