Problem:
If you set `basedir regex' some regular expression, it can cause memory overflow.
Cause:
The function getvolbypath() in libatalk/util/netatalk_conf.c assumes the length of matched string is the same as that of the regular expression. However, this is not always true.
Solution:
An attached patch fixes this problem.
I couldn't attach a patch...
The patch is the following.
Last edit: Takao Shimayoshi 2014-06-10
Haven't tested your patch, but looks good, will merge for next 3.1 series update.
Thanks for contributing!
Fixed for 3.1.3 in [48434418007f625f292b16c99ee0dd7f9fcb1416].
Related
Commit: [484344]