From: Martin Quinson Date: Tue, 17 Jul 2012 13:46:38 +0000 (+0200) Subject: regenerate the flexer files with a recent flexml, so that there is no undefined behav... X-Git-Tag: v3_8~270 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/47b33fbc4c510ddf3eb9f8593d1b14cdf23188e2 regenerate the flexer files with a recent flexml, so that there is no undefined behavior concerning the char after terminating nul in strings --- 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