|
|
4d476f |
autofs-5.1.0 - fix out of order clearing of options buffer
|
|
|
4d476f |
|
|
|
4d476f |
From: Ian Kent <ikent@redhat.com>
|
|
|
4d476f |
|
|
|
4d476f |
When setting the result of parsing an options string the options buffer
|
|
|
4d476f |
was being cleared before use.
|
|
|
4d476f |
---
|
|
|
4d476f |
CHANGELOG | 1 +
|
|
|
4d476f |
modules/amd_parse.y | 2 +-
|
|
|
4d476f |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
4d476f |
|
|
|
4d476f |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
4d476f |
+++ autofs-5.0.7/CHANGELOG
|
|
|
4d476f |
@@ -151,6 +151,7 @@
|
|
|
4d476f |
- fix memory leak in create_client().
|
|
|
4d476f |
- fix memory leak in get_exports().
|
|
|
4d476f |
- fix memory leak in get_defaults_entry().
|
|
|
4d476f |
+- fix out of order clearing of options buffer.
|
|
|
4d476f |
|
|
|
4d476f |
25/07/2012 autofs-5.0.7
|
|
|
4d476f |
=======================
|
|
|
4d476f |
--- autofs-5.0.7.orig/modules/amd_parse.y
|
|
|
4d476f |
+++ autofs-5.0.7/modules/amd_parse.y
|
|
|
4d476f |
@@ -396,7 +396,6 @@ option_assignment: MAP_OPTION OPTION_ASS
|
|
|
4d476f |
}
|
|
|
4d476f |
| MNT_OPTION OPTION_ASSIGN options
|
|
|
4d476f |
{
|
|
|
4d476f |
- memset(opts, 0, sizeof(opts));
|
|
|
4d476f |
if (!strcmp($1, "opts"))
|
|
|
4d476f |
entry.opts = amd_strdup(opts);
|
|
|
4d476f |
else if (!strcmp($1, "addopts"))
|
|
|
4d476f |
@@ -407,6 +406,7 @@ option_assignment: MAP_OPTION OPTION_ASS
|
|
|
4d476f |
amd_notify($1);
|
|
|
4d476f |
YYABORT;
|
|
|
4d476f |
}
|
|
|
4d476f |
+ memset(opts, 0, sizeof(opts));
|
|
|
4d476f |
}
|
|
|
4d476f |
| MNT_OPTION OPTION_ASSIGN
|
|
|
4d476f |
{
|