On Wed, October 22, 2014 21:18, Daniel Zulla wrote:
> What happens if you exceed uint32?
>
>
> Just curious, security-wise, because AFAIR exceeding uint32 would be
> possible through superglobals only, which a potential attacker could abuse.
>
>
> param=foo
>
> param[a]=foo&param[b]=foo&param[c]=foo&param[…]=foo (reaching uin32+1)
>
Daniel,

QUERY_STRING length has a limitation. And, unsigned will roll over once
exceeded. So without looking deeply at the code, it might just reset the
whole HashTable to the zero size, but the internal counters will be blown.

Regards

Anatol




-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to