aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbparse.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-03tvbparse: do not increment the token length when the new sub token length is 0Pascal Quantin1-2/+4
It fixes the unwanted addition of ignore characters when using tvbparse_some as seen with the capture from bug 10417 Change-Id: If68b587e1821fb34aa1fb56666986e1fa6385c33 Reviewed-on: https://code.wireshark.org/review/3905 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-06-18Fix compilation warningYan Burman1-2/+2
Change-Id: Ia7922415d8b22ba0c5a04ad6940c7e10bc205d57 Reviewed-on: https://code.wireshark.org/review/2371 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-06-18Optimize tvbparse character set checking.Jakub Zawadzki1-61/+29
This patch makes tvbparse_[not_]chars() to generate array of characters which is accepted, later this array is checked in cond_chars_common(). This results in nice speedup of XML dissector (~33% for my file). Change-Id: I62a5585f8bccaaea1a0c49fc70c7552531493442 Reviewed-on: https://code.wireshark.org/review/2356 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-03Change ep_alloc() to wmem_new() change depcrecated API.AndersBroman1-5/+5
Change-Id: I1eb3d3f3ccdfa265099446e8d609273867304a73 Reviewed-on: https://code.wireshark.org/review/1936 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-01-13tvparse_until() is used, so don't make it static.Guy Harris1-1/+1
svn path=/trunk/; revision=54738
2014-01-13#if 0 out unused routines claimed to be "untested" and #if 0'ed out inGuy Harris1-1/+1
epan/tvparse.h, and static routines used by that code. svn path=/trunk/; revision=54727
2013-12-24Replace all(?) remaining ep_stack occurences with wmem stacks.Evan Huus1-10/+11
svn path=/trunk/; revision=54435
2013-09-22emem -> wmem conversion:Pascal Quantin1-1/+1
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-03-02From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 :Pascal Quantin1-53/+53
Remove C++ incompatibilities from tvbparse and tvbuff svn path=/trunk/; revision=48025
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45016
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-03-26Wrap a couple of very long lines.Chris Maynard1-2/+12
svn path=/trunk/; revision=41770
2010-12-31From Jakub Zawadzki via bug 4753: New dissector: JSON, w/minor changes by me:Chris Maynard1-3/+3
1) Add links to RFC 4627 and the json.org web site. 2) Comment out hf_json_member_key to keep tools/checkhf.pl happy. 3) Avoid duplicate (application/json) from being displayed in Info column. svn path=/trunk/; revision=35317
2010-04-03(Trivial): indentation & whitespace cleanup.Bill Meier1-404/+409
svn path=/trunk/; revision=32366
2010-04-03 From Yaniv Kaul: constify parametersBill Meier1-33/+33
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 From me: Fix a number of instances where the function prototype or the function definition wasn't changed so there was a mismatch thus causing Windows (but not gcc) compilation errors. svn path=/trunk/; revision=32365
2010-04-02Revert SVN #32360 until Windows compilation errors corrected.Bill Meier1-29/+29
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-29/+29
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-4/+4
svn path=/trunk/; revision=31720
2009-04-08More size_t fixes.Gerald Combs1-2/+2
svn path=/trunk/; revision=28000
2008-12-20Fix some typos and spelling (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27068
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-1/+1
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-26Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errorsStephen Fisher1-1/+1
under gcc to tools/lemon, plugins/mate and epan/ svn path=/trunk/; revision=21204
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-02-09Add heuristic dissection of XMLLuis Ontanon1-2/+34
svn path=/trunk/; revision=17228
2005-12-28Change tvbparse's engine to use callbacks instead of a big switch.Luis Ontanon1-554/+1083
add some primitives. svn path=/trunk/; revision=16916
2005-11-22Trivial warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=16561
2005-10-01one step further... Luis Ontanon1-3/+7
TPG now uses the ignore feature of tvbparse named sub_rules can have cardinality epan/tvbparse.c: do not crash on zero cardinality svn path=/trunk/; revision=16065
2005-09-29I needed to cut'n'paste something more...Luis Ontanon1-1/+6
I did not even try to compile it before check it in, sorry! svn path=/trunk/; revision=16057
2005-09-29add a debugging function that creates a tree exploding the parsed elementsLuis Ontanon1-0/+32
svn path=/trunk/; revision=16054
2005-09-28tvbparse.[ch]:Luis Ontanon1-26/+67
- add a tvbparse_handle() (for recursion) - change tvbparse_until() to allow more control when parsing - make the wanted control an union so that different types of data can be used packet-xml.c: - change the parser definition to match changes to tvbparse_until() svn path=/trunk/; revision=16045
2005-09-28update tpgLuis Ontanon1-3/+0
tvbparse: - for tvbparse_until spend the target token even if it isn't included svn path=/trunk/; revision=16032
2005-09-27in tvbparse:Luis Ontanon1-2/+14
- tvbparse_some now handles 0 items. - added accessors for a tt's offset and remaining length. in packet-xml: - min_len=0 for tvbparse_chars() is soon going to mean zero instead of 1 change the 0s to 1s. - attribute names can have ':' even if it's namespaces isn't managed yet. - split the xml grammar in more elements so It can be actually read by a human being. svn path=/trunk/; revision=16031
2005-09-08fix the svn keywords and some comments that were out of dateLuis Ontanon1-1/+1
svn path=/trunk/; revision=15727
2005-09-08an API for "bufferless" parsing of text tvbsLuis Ontanon1-0/+756
svn path=/trunk/; revision=15726