bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs current-time-string core dump on 64-bit hosts


From: Andreas Schwab
Subject: Re: Emacs current-time-string core dump on 64-bit hosts
Date: Fri, 17 Mar 2006 17:25:41 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Paul Eggert <eggert@CS.UCLA.EDU> writes:

>       * lib-src/b2m.c: Include <limits.h>, for CHAR_BIT.
>       (TM_YEAR_BASE): New macro.
>       (string_from_time): New function.
>       (main): Use it instead of ctime, to avoid buffer overflows with
>       outlandish time stamps.

Here ctime is only ever been called on the current wall time, if you set
that to some outlandish time stamp you already have enough problems
anyway.

>       * lib-src/fakemail.c: Likewise.

Likewise.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]