Branch: Tag:

2015-04-20

2015-04-20 08:24:23 by Martin Nilsson <nilsson@opera.com>

Fix dereference before null check. CID 1294655

517:    {    time_t t = _t;    struct tm *res = localtime_zone( &t, &THIS->t ); +  if( !res ) +  RETURN 0;       /* These are supposedly correctly by localtime_zone. */    SET_GMTOFF(res, GET_GMTOFF(&(THIS->t)));    SET_ZONE(res, GET_ZONE(&(THIS->t)));    -  if( !res ) -  RETURN 0; +     THIS->t = *res;    THIS->modified = 1;    RETURN 1;