]> arthur.barton.de Git - netatalk.git/commit
Fix data corruption bug
authorFrank Lahm <franklahm@googlemail.com>
Thu, 23 Aug 2012 10:20:00 +0000 (12:20 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 23 Aug 2012 10:20:00 +0000 (12:20 +0200)
commit8e5e83dac34cf886996821a51dee5c971e7c51f2
tree71002a06d73ad895d8bb9fa0a577cc83c19eaa18
parent2edc69280da7195ccac0b7c29844be0db14dedec
Fix data corruption bug

Received data from the client was written to the read-ahead buffer
from dsi_peek() which caused data corrution.
Fix is: change the DSI command buffer from static 8192 bytes to
an allocated buffer of size DSI quantum and use this buffer in
dsi_write/write_fork. That just requires dsi_writeinit to use
memmove instead of memcpy, because now we use the same buffer.
NEWS
etc/afpd/afp_dsi.c
etc/afpd/fork.c
include/atalk/dsi.h
libatalk/dsi/dsi_opensess.c
libatalk/dsi/dsi_stream.c
libatalk/dsi/dsi_tcp.c
libatalk/dsi/dsi_write.c