On 6 Apr 2016, at 17:59, Alex Bligh <[email protected]> wrote:

>> A server that sticks a super-long UTF-8 string in an error reply could
>> cause problems for clients.  Should we have an upper bound on the length
>> permissible in NBD_REP_ERR_*, such as 4096, and permit clients to
>> disconnect if the server sends a length larger than that, so that
>> clients can usefully read the error message into a stack-local buffer
>> rather than having to heap-allocate and worry about a rogue server
>> sending a message as large as 2^32 bytes?
> 
> +1. Similarly with export names.

I've just sent a patch as a straw man to fix that centrally.

--
Alex Bligh




Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to