In reviewing the first patch I've found another problem with
mapent_len possibly not being initialized.
Note the order of application of the patch is:
autofs-5.1.2 - use malloc for expanded map location
autofs-5.1.2 - fix offset mount location multiple expansion
and, although they are against current upstream they should apply.
If not then ask and I'll fix them.
In reviewing the first patch I've found another problem with
mapent_len possibly not being initialized.
Note the order of application of the patch is:
autofs-5.1.2 - use malloc for expanded map location
autofs-5.1.2 - fix offset mount location multiple expansion
and, although they are against current upstream they should apply.
If not then ask and I'll fix them.