libdmsg - Fix buffer overrun
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2015 05:00:36 +0000 (21:00 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2015 05:00:36 +0000 (21:00 -0800)
commit024de40533b9f7dc2d6d2aaae58413a348c10686
tree97a5217eb02981252ae5393441d5816ee7f2656e
parenta8343f8df3c6fd551d10c36ddafdd3d201acdef9
libdmsg - Fix buffer overrun

* Large messages (generally large data payloads) could overrun the FIFO
  buffer.  e.g. dd if=/dev/xa<blah> of=/dev/null bs=32k

* Fix by chunking up large payloads.
lib/libdmsg/msg.c