From 47b33fbc4c510ddf3eb9f8593d1b14cdf23188e2 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 17 Jul 2012 15:46:38 +0200 Subject: [PATCH] regenerate the flexer files with a recent flexml, so that there is no undefined behavior concerning the char after terminating nul in strings --- src/simdag/dax_dtd.c | 25 ++++++++++++++++++------- src/surf/simgrid_dtd.c | 25 ++++++++++++++++++------- src/xbt/graphxml.c | 25 ++++++++++++++++++------- 3 files changed, 54 insertions(+), 21 deletions(-) diff --git a/src/simdag/dax_dtd.c b/src/simdag/dax_dtd.c index f0eae8158a..29c6072438 100644 --- a/src/simdag/dax_dtd.c +++ b/src/simdag/dax_dtd.c @@ -1498,13 +1498,24 @@ static int ck_ilimit() #ifdef FLEXML_NEED_BUFFERLIT static void dax__bufferliteral(char c, int* pp, const char* text) { - const char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c); - assert(s <= e); BUFFERSET(*pp); - while (++s