mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#8301 remove assert in ber_get_next
Just return error.
This commit is contained in:
parent
994923dbc5
commit
8e77cfce92
@ -656,7 +656,8 @@ ber_get_next(
|
||||
ber_slen_t to_go;
|
||||
|
||||
to_go = ber->ber_end - ber->ber_rwptr;
|
||||
assert( to_go > 0 );
|
||||
/* unsigned/signed overflow */
|
||||
if (to_go<0) return LBER_DEFAULT;
|
||||
|
||||
sock_errset(0);
|
||||
res = ber_int_sb_read( sb, ber->ber_rwptr, to_go );
|
||||
|
Loading…
Reference in New Issue
Block a user