[PATCH 24/35] autofs-5.1.3 - fix amd parser error buffer size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is an inconsistency between the error message buffer length
of the amd parser and the possible string length the bison generated
parser can pass to it.

Just increase the error buffer size to cover it.

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG           |    1 +
 modules/amd_parse.y |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 25dc7301..90d06d59 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -22,6 +22,7 @@ xx/xx/2017 autofs-5.1.4
 - check map instances for staleness on map update.
 - allow dot in OPTIONSTR value lexer pattern.
 - fix autofs_use_lofs description.
+- fix amd parser error buffer size.
 
 24/05/2017 autofs-5.1.3
 =======================
diff --git a/modules/amd_parse.y b/modules/amd_parse.y
index e99820b9..9694515d 100644
--- a/modules/amd_parse.y
+++ b/modules/amd_parse.y
@@ -31,7 +31,7 @@
 #include "log.h"
 
 #define MAX_OPTS_LEN	1024
-#define MAX_ERR_LEN	512
+#define MAX_ERR_LEN	3096
 
 static pthread_mutex_t parse_mutex = PTHREAD_MUTEX_INITIALIZER;
 

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux