[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev LYUtils and mktemp, and string2.h warnings (glibc 2.2)
From: |
Thomas Dickey |
Subject: |
Re: lynx-dev LYUtils and mktemp, and string2.h warnings (glibc 2.2) |
Date: |
Sat, 23 Dec 2000 13:30:22 -0500 |
User-agent: |
Mutt/1.2.5i |
On Sat, Dec 23, 2000 at 12:08:34AM -0200, Frédéric L . W . Meunier wrote:
> Hi. With glibc 2.2 dev.15 reports the following after linking
> the binary:
>
> LYUtils.o: In function `LYOpenTemp':
> LYUtils.o(.text+0x7b83): the use of `mktemp' is dangerous, better use
> `mkstemp'
mkstemp is insecure on older Linux systems (creates world-writable files,
according to the man-page).
> BTW, I see that with glibc 2.2 you get a lot of warnings
> building Lynx (I always use --enable-warnings) and some other
> tools:
yes. I patch the headers myself, but since each release has more of this
sort of thing, I can only assume that it's intentional - no matter the
excuse, I don't agree with it. (The only thing that I encounter regularly
which is comparable is trying to use /W4 with Visual C++).
> /usr/include/bits/string2.h: In function `__mempcpy_small' ->
> warning: pointer of type `void *' used in arithmetic
>
> /usr/include/bits/string2.h: In function `__strcpy_small' ->
> warning: pointer of type `void *' used in arithmetic
>
> I also don't know why the binary increased so much in size:
They inline a lot more stuff, which is ok for speed, but bloats the executable.
> -rwxr-xr-x 1 root bin 970368 Oct 26 01:35 lynx
> (dev.13 with glibc 2.1.3)
>
> -rwxr-xr-x 1 root bin 1529476 Dec 22 20:18 lynx
>
> Both were built with egcs 1.1.2, although glibc 2.2 was built
> with gcc 2.95.2, as it's the minimum requirement. The warnings
> appear with gcc 2.95.2 too. The only change was the addition of
> --enable-color-style. make LDFLAGS=-s on both, no changes to
> CFLAGS.
>
> --
> address@hidden, {dyndns.}org} TelFax: 55-21-717-2399 (Niterói-RJ BR)
>
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
--
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden