Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-15 Thread Todd C . Miller
On Mon, 15 Apr 2024 14:17:10 +0200, =?utf-8?B?0KHRgtGA0LDRhdC40ZrQsCDQoNCw0LTQu NGb?= wrote: > Just to clarify, this particular instance of this issue seems to be related t > o > terminfo. > > In general, as I stated earlier, the log message > > ... [program_name]: vfprintf %s NULL in

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-15 Thread Jason McIntyre
On Mon, Apr 15, 2024 at 02:25:04AM +, Jeremy Mates wrote: > TL;DR it's TERMINFO related or when ~/.terminfo exists and no TERM file > exists therein. Also trying to read "none" (or maybe also "none.db" when > the TERMINFO thing happens) from the current working directory might not > be a good

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-15 Thread Страхиња Радић
Дана 24/04/15 02:25AM, Jeremy Mates написа: > TL;DR it's TERMINFO related or when ~/.terminfo exists and no TERM file > exists therein. Also trying to read "none" (or maybe also "none.db" when > the TERMINFO thing happens) from the current working directory might not > be a good idea, if an

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-14 Thread Jeremy Mates
TL;DR it's TERMINFO related or when ~/.terminfo exists and no TERM file exists therein. Also trying to read "none" (or maybe also "none.db" when the TERMINFO thing happens) from the current working directory might not be a good idea, if an attacker can put naughty things into either of those files

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-11 Thread Dennis Eriksen
On Thu, Apr 11, 2024 at 10:10:20AM +0200, Eivind Eide wrote: It is possible that I have missed important context here, but with a bare environment with only essentials like $HOME defined and no ~/.terminfo directory (as opposed to an empty one), do the odd messages still appear? After rm -rf

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-11 Thread Eivind Eide
> It is possible that I have missed important context here, but with a > bare environment with only essentials like $HOME defined and no > ~/.terminfo directory (as opposed to an empty one), do the odd messages > still appear? After rm -rf ~/.terminfo/ the message is gone (regardless of

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-11 Thread Peter N. M. Hansteen
On Thu, Apr 11, 2024 at 09:41:47AM +0200, Eivind Eide wrote: > > HOME="/home/eivind" > > That's the environmental variable that triggers the message if an > empty ~/.terminfo/ directory is present in my home. It is possible that I have missed important context here, but with a bare environment

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-11 Thread Eivind Eide
> UPDATE: If the ~/.terminfo/ directory EXIST in users home but the > termcap file is missing, the behaviour returns. > It's to late now, but I will do the tests and report back tomorrow. And... The winner is: HOME="/home/eivind" That's the environmental variable that triggers the message if an

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-10 Thread Eivind Eide
> Now I wanted to start testing environmental variables so I completely > removed the ~/.terminfo/ directory, expecting the previous behavior to > return. However, I cannot reproduce! I even tried rebooting, but no. I > have no rational explanation for this. UPDATE: If the ~/.terminfo/ directory

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-10 Thread Eivind Eide
> Given 'if I do "env -i TERM=tmux-256color mutt" mutt opens WITHOUT > triggering the message', that implies that one of the other variables > set would be triggering it, can you either figure out which one or > show the list so someone else can try to replicate it please? Yes, I would really

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-10 Thread Stuart Henderson
On 2024-04-09, Why 42? The lists account. wrote: > > On Sat, Apr 06, 2024 at 02:42:25PM +0200, Eivind Eide wrote: >> After upgrading to 7.5 amd64 -stable (and all ports updated) I get >> these messages in /var/log/messages. This is with bash from ports >> inside tmux over SSH: >> >> tmux:

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-09 Thread Alexis
"Why 42? The lists account." writes: Tumbler is something to do with D-Bus and is also a required package by/for XFCE. Yeah, Tumbler / tumblerd is a service, accessible via D-Bus, that generates thumbnails for files, e.g. in ~/.cache/thumbnails or equivalent. (But i'm not an XFCE user

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-09 Thread Stuart Henderson
On 2024-04-09, Eivind Eide wrote: >>The log message no longer appears after running >> >>cp /usr/share/terminfo/x/xterm-256color ~/.terminfo/x/ > > Indeed! After > mkdir -p ~/.terminfo/t/ > cp /usr/share/terminfo/t/tmux-256color ~/.terminfo/t/ > (and the same for other termcaps

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-09 Thread Why 42? The lists account.
On Sat, Apr 06, 2024 at 02:42:25PM +0200, Eivind Eide wrote: > After upgrading to 7.5 amd64 -stable (and all ports updated) I get > these messages in /var/log/messages. This is with bash from ports > inside tmux over SSH: > > tmux: vfprintf %s NULL in "%.*s" > bash: vfprintf %s NULL in "%.*s"

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-09 Thread Eivind Eide
>The log message no longer appears after running > >cp /usr/share/terminfo/x/xterm-256color ~/.terminfo/x/ Indeed! After mkdir -p ~/.terminfo/t/ cp /usr/share/terminfo/t/tmux-256color ~/.terminfo/t/ (and the same for other termcaps used) those messages are gone from

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-08 Thread Jeremy Mates
Given logger foo;xterm -tn xterm-256color -e ktrace -di /bin/ksh the log message 'ksh: vfprintf %s NULL in "%.*s"' appears when ~/.terminfo/x/xterm/xterm-256color does not exist. The log message no longer appears after running cp /usr/share/terminfo/x/xterm-256color ~/.terminfo/x/ and

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-08 Thread Stuart Henderson
On 2024-04-08, Eivind Eide wrote: > 24/04/06 06:04PM, Stuart Henderson: >> The fact that these all started hitting this with the same printf string >> (including tmux, which is in base) makes me wonder if it's coming from a >> library, the most likely being libcurses which was updated between 7.4

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-08 Thread Eivind Eide
24/04/06 06:04PM, Stuart Henderson: > The fact that these all started hitting this with the same printf string > (including tmux, which is in base) makes me wonder if it's coming from a > library, the most likely being libcurses which was updated between 7.4 > and 7.5 (which all of those use). > >

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-07 Thread Страхиња Радић
Дана 24/04/07 10:11AM, Stuart Henderson написа: > Yes. It's very common though, especially when constructing strings for > debug logging. I see this a lot with software in the GNOME ecosystem > using sprintf for this. Programmers who pass NULL to %s format specifier are writing incorrect code,

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-07 Thread Stuart Henderson
On 2024-04-06, Страхиња Радић wrote: > Дана 24/04/06 06:04PM, Stuart Henderson написа: >> The fact that these all started hitting this with the same printf string >> (including tmux, which is in base) makes me wonder if it's coming from a >> library, the most likely being libcurses which was

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-06 Thread Страхиња Радић
Дана 24/04/06 06:04PM, Stuart Henderson написа: > The fact that these all started hitting this with the same printf string > (including tmux, which is in base) makes me wonder if it's coming from a > library, the most likely being libcurses which was updated between 7.4 > and 7.5 (which all of

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-06 Thread Stuart Henderson
On 2024-04-06, Страхиња Радић wrote: > Дана 24/04/06 02:42PM, Eivind Eide написа: >> tmux: vfprintf %s NULL in "%.*s" >> bash: vfprintf %s NULL in "%.*s" >> multitail: vfprintf %s NULL in "%.*s" >> vim: vfprintf %s NULL in "%.*s" > > This happens in OpenBSD when a program passes NULL pointer to

Re: 7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-06 Thread Страхиња Радић
Дана 24/04/06 02:42PM, Eivind Eide написа: > tmux: vfprintf %s NULL in "%.*s" > bash: vfprintf %s NULL in "%.*s" > multitail: vfprintf %s NULL in "%.*s" > vim: vfprintf %s NULL in "%.*s" This happens in OpenBSD when a program passes NULL pointer to *printf family of functions. The bug reports

7.5 /var/log/messages - vfprintf %s NULL in "%.*s"

2024-04-06 Thread Eivind Eide
After upgrading to 7.5 amd64 -stable (and all ports updated) I get these messages in /var/log/messages. This is with bash from ports inside tmux over SSH: tmux: vfprintf %s NULL in "%.*s" bash: vfprintf %s NULL in "%.*s" multitail: vfprintf %s NULL in "%.*s" vim: vfprintf %s NULL in "%.*s" tmux: