]> arthur.barton.de Git - netatalk.git/commit
Fix a crash when accessing ._ files, bug #564
authorRalph Boehme <rb@sernet.de>
Wed, 18 Jun 2014 14:54:24 +0000 (16:54 +0200)
committerRalph Boehme <rb@sernet.de>
Wed, 18 Jun 2014 14:54:24 +0000 (16:54 +0200)
commit3988114e763aceb0d06ffb9a64549dec5a9500ff
treeb03fe89e1a75e740929e460a7846dc82fed937cc
parent48434418007f625f292b16c99ee0dd7f9fcb1416
Fix a crash when accessing ._ files, bug #564

At least FreeBSD is picky in that it requires PROT_READ if we're going
to read a mmap()ed memory region mapped, only specifying PROT_WRITE
doesn't imply PROT_READ. Other OSen seem to handle this differently.

Also add a missing pointer reinitialisation to the buf pointer.

Reported-by: Sean Eric Fagan
Signed-off-by: Ralph Boehme <rb@sernet.de>
NEWS
libatalk/adouble/ad_open.c