Ensure that no tag can be created with 64k+ childrenamule-svn-r10917
commit5c44fa33a5fbb8a3a1876b0abb395af75761bd76
authorupstream svn <svn@amule.org>
Fri, 15 Apr 2016 12:36:17 +0000 (15 12:36 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Sun, 17 Apr 2016 01:47:47 +0000 (17 01:47 +0000)
tree98e79a208bb77e43f8e721c8e97c366039c54cf6
parentf82e54f2d239b5bc1e4760df92468b54428a44d1
Ensure that no tag can be created with 64k+ children

Excess children are silently ignored while creating the tag. When reading from
the network the reader routine will never read more than 64k children. When
writing, technically we could write more that 64k children, but since creating
such tags is not possible without hacking the underlying object, we can be quite
safe about it.
.svn-revision
src/libs/ec/cpp/ECTag.cpp