mirror of https://gerrit.osmocom.org/asn1c
slightly more adequate constant
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@48 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
e26690f3a6
commit
5d219bfdee
|
@ -237,9 +237,9 @@ SEQUENCE_decode_ber(asn1_TYPE_descriptor_t *sd,
|
|||
opt_edx_end = edx + elements[edx].optional + 1;
|
||||
if(opt_edx_end > specs->elements_count)
|
||||
opt_edx_end = specs->elements_count; /* Cap */
|
||||
else if(opt_edx_end - edx > 5) {
|
||||
else if(opt_edx_end - edx > 8) {
|
||||
/* Limit the scope of linear search... */
|
||||
opt_edx_end = edx + 5;
|
||||
opt_edx_end = edx + 8;
|
||||
use_bsearch = 1;
|
||||
/* ... and resort to bsearch() */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue