Skip to content
Snippets Groups Projects
Commit 75052a60 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8301 remove assert in ber_get_next

Just return error.
parent 397653b2
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment