aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat_load.l
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-02-04 02:29:06 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-02-04 02:29:06 +0000
commit8bfa2bace4592d4797be7af19e763fb16ce2492c (patch)
treefdb0e1967f6c0484228718f18b5f976ce3145053 /epan/uat_load.l
parenta84df3865196a007db3f724076558f5c2306bbd3 (diff)
the quoted_string regexp in uat_load() fails badly on "...\\", workarround in uat_save() using \x5c and \x22 (hex for \ and ")
svn path=/trunk/; revision=20706
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r--epan/uat_load.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index 2e2a0b511a..2a32b79d30 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -82,9 +82,14 @@
#define DUMP_FIELD(s)
#define DUMP(s)
#endif
+ /*
+ * XXX
+ * quoted_string below fails badly on "...\\"
+ * workarround in uat_save(), using /x5c and /x22
+ */
%}
-quoted_string \042([^\042]|\134\042)*\042
+quoted_string \042([^\042]|\134\134|\134\042)*\042
binstring ([0-9a-zA-Z][0-9a-zA-Z])+
separator [ \t]*,
newline [ \t]*[\r]?\n