[3031] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

pending/683: gmtime() problem

daemon@ATHENA.MIT.EDU (Gair Heaton)
Thu Jan 21 07:18:11 1999

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Gair_H@hi-resolution.com (Gair Heaton)
Date: Thu, 21 Jan 1999 12:18:32 +0000
From: Gair_H@hi-resolution.com (Gair Heaton)
To: krb5-bugs@MIT.EDU


>Number:         683
>Category:       pending
>Synopsis:       gmtime() problem
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Jan 21 07:18:00 EST 1999
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
I've been using your Kerberos 5 1.0.3 library on a Macintosh and found a
problem in the "asn1_encode.c" file. The asn1_encode_generaltime() routine
calles the gmtime() routine, and what I found is that if the location
hasn't been set in the Map control panel and/or the time zone hasn't been
set in the Date & Time control panel then gmtime() will return NULL. The
problem is that asn1_encode_generaltime() doesn't check if the return is
NULL and then tries to access subvalues of that structure causing a crash.
I recently downloaded the Kerberos 5 1.0.5 library and noticed a new
format_kw_gentime() routine in "adm_kw_enc.c" which also uses gmtime and it
does the "right" thing, checking if the return is NULL - however, the
asn1_encode_generaltime() still doesn't check.

Regards,
Gair Heaton

____________________________________________________________________

Gair Heaton  -  Technical Support

HI RESOLUTION SOFTWARE

____________________________________________________________________



home help back first fref pref prev next nref lref last post