Diff for /libraries/liblber/decode.c between versions 1.87 and 1.88

version 1.87, 2003/01/03 19:20:50 version 1.88, 2003/01/19 13:02:06
Line 1 Line 1
 /* decode.c - ber input decoding routines */  /* decode.c - ber input decoding routines */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.86 2002/11/28 01:26:55 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.87 2003/01/03 19:20:50 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 141  ber_skip_tag( BerElement *ber, ber_len_t Line 141  ber_skip_tag( BerElement *ber, ber_len_t
                 *len = lc;                  *len = lc;
         }          }
   
         /* BER length should be non-negative */  
         if( *len < 0 ) {  
                 return LBER_DEFAULT;  
         }  
   
         /* BER element should have enough data left */          /* BER element should have enough data left */
         if( *len > (ber_len_t) ber_pvt_ber_remaining( ber ) ) {          if( *len > (ber_len_t) ber_pvt_ber_remaining( ber ) ) {
                 return LBER_DEFAULT;                  return LBER_DEFAULT;

Removed from v.1.87  
changed lines
  Added in v.1.88


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org