[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Let's tell we are using GTK+
From: |
Lute Kamstra |
Subject: |
Re: Let's tell we are using GTK+ |
Date: |
Tue, 19 Aug 2003 11:46:21 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Terje Rosten <address@hidden> writes:
> * Lute Kamstra
> |
> | Maybe the GTK version should be mentioned as well.
>
> Updated patches with version information and the (annoying?) +
> sign removed. emacs-version will now display something like this:
>
> GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, GTK+ 2.2.1) of 2003-08-04 on
> myhost.net
I like it, but...
[...]
> + {
> + char gtk_version[8];
> + sprintf (gtk_version, "%d.%d.%d", GTK_MAJOR_VERSION, GTK_MINOR_VERSION,
> + GTK_MICRO_VERSION);
> + Vgtk_version_string = build_string (gtk_version);
> + }
this seems vulnerable to a buffer overflow. It is acceptable to use
snprintf instead, or isn't that portable enough? (I'm not really
intimate with C.) What could be used instead, a larger string?
Lute.
- Re: Let's tell we are using GTK+, (continued)
Re: Let's tell we are using GTK+, Lute Kamstra, 2003/08/04
- Re: Let's tell we are using GTK+, Terje Rosten, 2003/08/04
- Re: Let's tell we are using GTK+, Betoes, 2003/08/20
- Re: Let's tell we are using GTK+, Andreas Schwab, 2003/08/22
- Re: Let's tell we are using GTK+, Richard Stallman, 2003/08/23
- Re: Let's tell we are using GTK+, Lute Kamstra, 2003/08/24
Re: Let's tell we are using GTK+, Richard Stallman, 2003/08/22
Re: Let's tell we are using GTK+, Simon Josefsson, 2003/08/23
Re: Let's tell we are using GTK+, José Roberto B . de A . Monteiro, 2003/08/21
Re: Let's tell we are using GTK+, Betoes, 2003/08/22