rybakit / msgpack.php

A pure PHP implementation of the MessagePack serialization format / msgpack.org[PHP]
MIT License
388 stars 18 forks source link

Check the maximum allowed value size while packing #4

Closed rybakit closed 8 years ago

rybakit commented 8 years ago

The checks are not needed, as the maximum length of a string in php is 0x7fffffff, the maximum array size is 0xffffffff. Trying to build a value above these limits will result in a Fatal Error.