sociomantic-tsunami / swarm

Asynchronous client/node framework library
Boost Software License 1.0
14 stars 26 forks source link

Sanitize the input array length #343

Closed nemanja-boric-sociomantic closed 6 years ago

nemanja-boric-sociomantic commented 6 years ago

FiberSelectReader now will throw an exception if the array length is larger than FiberSelectReader.max_array_size (defaults to 10MB). This will prevent allocation of the huge amounts of memory on the invalid data.

nemanja-boric-sociomantic commented 6 years ago

Whops, that's a mistake.

nemanja-boric-sociomantic commented 6 years ago

Updated.