Date: Sat, 11 Sep 1999 11:00:57 +0100 (BST) From: James Raynard <james@jraynard.demon.co.uk> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/13694: Y2K patch for slurp port Message-ID: <199909111000.LAA02311@jraynard.demon.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 13694 >Category: ports >Synopsis: Y2K patch for slurp port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 11 03:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: James Raynard >Release: FreeBSD 4.0-CURRENT i386 >Organization: >Environment: >Description: Patch below should be applied to avoid buffer overflow when tm_year >= 100. >How-To-Repeat: >Fix: --- hostfiles.c.orig Sat Sep 11 10:40:33 1999 +++ hostfiles.c Sat Sep 11 10:42:36 1999 @@ -166,7 +166,7 @@ else { tmtime = gmtime (&nexttime); - ndate = (tmtime -> tm_year * 10000) + + ndate = (tmtime -> tm_year%100 * 10000) + ((tmtime -> tm_mon + 1) * 100) + tmtime -> tm_mday; ntime = (tmtime -> tm_hour * 10000) + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909111000.LAA02311>