From fc35b815a961e99c199ae1aa61e73878a299165c Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 22 Jan 2008 16:10:06 +0000 Subject: [PATCH] increased buffer size. Addresses bug #511072. 2008-01-22 Sven Neumann * plug-ins/imagemap/imap_csim.y: increased buffer size. Addresses bug #511072. * plug-ins/imagemap/imap_csim_parse.[ch]: regenerated. svn path=/trunk/; revision=24673 --- ChangeLog | 7 +++++++ plug-ins/imagemap/imap_csim.y | 8 ++++---- plug-ins/imagemap/imap_csim_parse.c | 6 +++--- plug-ins/imagemap/imap_csim_parse.h | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27a07da5ee..3eac085a16 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-22 Sven Neumann + + * plug-ins/imagemap/imap_csim.y: increased buffer size. Addresses + bug #511072. + + * plug-ins/imagemap/imap_csim_parse.[ch]: regenerated. + 2008-01-22 Sven Neumann * app/display/gimpdisplayshell-callbacks.c diff --git a/plug-ins/imagemap/imap_csim.y b/plug-ins/imagemap/imap_csim.y index b9e8655c1b..33df533409 100755 --- a/plug-ins/imagemap/imap_csim.y +++ b/plug-ins/imagemap/imap_csim.y @@ -49,7 +49,7 @@ static MapInfo_t *_map_info; %union { int val; double value; - char id[1024]; /* Large enough to hold all polygon points! */ + char id[4096]; /* Large enough to hold all polygon points! */ } %token IMG SRC WIDTH HEIGHT BORDER USEMAP @@ -136,7 +136,7 @@ description_line: DESCRIPTION STRING END_COMMENT { gchar *description; - description = g_strconcat(_map_info->description, $2, "\n", + description = g_strconcat(_map_info->description, $2, "\n", NULL); g_strreplace(&_map_info->description, description); } @@ -154,7 +154,7 @@ area : '<' AREA tag_list xhtml_close ; xhtml_close : '>' - | '/' '>' + | '/' '>' ; tag_list : /* Empty */ @@ -310,7 +310,7 @@ end_map : '<' END_MAP '>' %% -static void +static void csim_error(char* s) { extern FILE *csim_in; diff --git a/plug-ins/imagemap/imap_csim_parse.c b/plug-ins/imagemap/imap_csim_parse.c index 33d1b1f5b3..109d8854c9 100644 --- a/plug-ins/imagemap/imap_csim_parse.c +++ b/plug-ins/imagemap/imap_csim_parse.c @@ -207,7 +207,7 @@ typedef union YYSTYPE { int val; double value; - char id[1024]; /* Large enough to hold all polygon points! */ + char id[4096]; /* Large enough to hold all polygon points! */ } /* Line 187 of yacc.c. */ #line 214 "y.tab.c" @@ -1580,7 +1580,7 @@ yyreduce: { gchar *description; - description = g_strconcat(_map_info->description, (yyvsp[(2) - (3)].id), "\n", + description = g_strconcat(_map_info->description, (yyvsp[(2) - (3)].id), "\n", NULL); g_strreplace(&_map_info->description, description); } @@ -1955,7 +1955,7 @@ yyreturn: #line 311 "imap_csim.y" -static void +static void csim_error(char* s) { extern FILE *csim_in; diff --git a/plug-ins/imagemap/imap_csim_parse.h b/plug-ins/imagemap/imap_csim_parse.h index a5714d88aa..ca58a917a7 100644 --- a/plug-ins/imagemap/imap_csim_parse.h +++ b/plug-ins/imagemap/imap_csim_parse.h @@ -104,7 +104,7 @@ typedef union YYSTYPE { int val; double value; - char id[1024]; /* Large enough to hold all polygon points! */ + char id[4096]; /* Large enough to hold all polygon points! */ } /* Line 1489 of yacc.c. */ #line 111 "y.tab.h"