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

version 1.84.2.4, 2003/02/07 16:58:48 version 1.87, 2003/01/03 19:20:50
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.84.2.3 2002/11/28 22:18:55 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.86 2002/11/28 01:26:55 kurt Exp $ */
 /*  /*
  * Copyright 1998-2002 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
  */   */
 /* Portions  /* Portions
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;
Line 598  ber_next_element( Line 603  ber_next_element(
   
         assert( LBER_VALID( ber ) );          assert( LBER_VALID( ber ) );
   
         if ( ber->ber_ptr >= last ) {          if ( ber->ber_ptr == last ) {
                 return LBER_DEFAULT;                  return LBER_DEFAULT;
         }          }
   

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


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