[dev] Re: [sic] null pointer in printf

From: Premysl Hruby <dfenze_AT_gmail.com>
Date: Tue, 25 May 2010 08:37:45 +0200

On (24/05/10 10:02), Premysl Hruby wrote:
> Date: Mon, 24 May 2010 10:02:47 +0200
> From: Premysl Hruby <dfenze_AT_gmail.com>
> To: dwm_AT_suckless.org
> Subject: [sic] null pointer in printf
> User-Agent: Mutt/1.5.20 (2009-06-14)
>
> Hi,
>
> in sic, if you use cmd ":m something" it will use null pointer as %s in
> printf (in function privmsg), which is obviously bad idea (segfault or,
> as in case of glibc it send unnecessary string "(null)".
>
> For fix, see patch:
>

Whoops.

Sorry guys, as other write in the thread, this is for oooold version
(1.0 from Jul 2008 :-). Looks like i somewhat forgot to update it on
this machine. So sorry I bothered you.

-Ph

-- 
Premysl "Anydot" Hruby, http://www.redrum.cz/
-
I'm a signature virus. Please add me to your signature and help me spread!
Received on Tue May 25 2010 - 06:37:45 UTC

This archive was generated by hypermail 2.2.0 : Tue May 25 2010 - 06:48:02 UTC