-
Notifications
You must be signed in to change notification settings - Fork 15
Enforce limits on ranges #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce limits on ranges #71
Conversation
|
I have a couple clarifying questions before providing feedback.
If we're going to cap something we should be certain it can't break in some other way. |
|
|
Got it thanks @yuzawa-san. I like your compromise. In the future when vendor |
|
that is correct. i have pushed the compromise solution. |
Is there something we could do to give the folks maintaining the libraries a heads up when the gvl is getting near the limit, maybe add something that checked the gvl database periodically and started warning when we were getting near the limit? Logging warnings is a rather subtle way of communicating what could be mighty difficult for the owner of entry 8192 to track down. |
|
Confirmed in Slack that 8192 will give us 5+ years before IAB TCF GVL out grows from current 4000. Then it looks good to use 8192. Rowena Lam asked me to give my input so please consider this as approved. (Don't have permission to approve PRs). Thanks. |
scothren
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for your work on this!
I agree with the comment from @bmayd about having something to notify us if that external list is reaching our limit so we can be proactive about increasing it.
fixes #44
add some reasonable limits to the ranges. i am open to picking different limits. typically these ranges are used for vendor lists which i believe to have fewer entries than the limits i chose.
i chose a limit of 8192 which is roughly 2x the number of current extant vendor id's per https://tools.iabtechlab.com/transparencycenter/explorer/business/gpp
i also added a reasonable limit to the fibonacci decoder to block very long strings, which may generate large numbers or possibly overflow int32.