[PATCH v2 2/5] nbd/server: Reject embedded NUL in NBD strings

2020-09-30 Thread Eric Blake
The NBD spec is clear that any string sent from the client must not contain embedded NUL characters. If the client passes "a\0", we should reject that option request rather than act on "a". Testing this is not possible with a compliant client, but I was able to use gdb to coerce libnbd into tempo

Re: [PATCH v2 2/5] nbd/server: Reject embedded NUL in NBD strings

2020-10-07 Thread Vladimir Sementsov-Ogievskiy
30.09.2020 15:11, Eric Blake wrote: The NBD spec is clear that any string sent from the client must not contain embedded NUL characters. If the client passes "a\0", we should reject that option request rather than act on "a". Testing this is not possible with a compliant client, but I was able