aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-image-jfif.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-12Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-9/+11
svn path=/trunk/; revision=40996
2011-12-28Remove unneeded #includes;Bill Meier1-950/+958
Reformat some long lines; Convert '4 space tabs' to spaces. svn path=/trunk/; revision=40307
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-16Do some conversions of proto_tree_add_item() 'encoding' arg.Bill Meier1-49/+49
(previously missed). 57 FT_BOOLEAN: FALSE-->ENC_BIG_ENDIAN 31 FT_BOOLEAN: TRUE-->ENC_LITTLE_ENDIAN 10 FT_BYTES: ENC_BIG_ENDIAN-->ENC_NA 1 FT_BYTES: ENC_LITTLE_ENDIAN-->ENC_NA 21 FT_BYTES: FALSE-->ENC_NA 2 FT_BYTES: TRUE-->ENC_NA 2 FT_IPXNET: ENC_BIG_ENDIAN-->ENC_NA 6 FT_IPv6: ENC_BIG_ENDIAN-->ENC_NA 1 FT_IPv6: FALSE-->ENC_NA 6 FT_NONE: ENC_BIG_ENDIAN-->ENC_NA 19 FT_NONE: FALSE-->ENC_NA 3 FT_NONE: TRUE-->ENC_NA 1 FT_STRING: ENC_BIG_ENDIAN-->ENC_ASCII|ENC_NA 1 FT_STRING: ENC_LITTLE_ENDIAN-->ENC_ASCII|ENC_NA 5 FT_STRING: FALSE-->ENC_ASCII|ENC_NA 1 FT_STRING: TRUE-->ENC_ASCII|ENC_NA 4 FT_STRINGZ: ENC_NA-->ENC_ASCII|ENC_NA 8 FT_STRINGZ: FALSE-->ENC_ASCII|ENC_NA 1 FT_INT32: FALSE-->ENC_BIG_ENDIAN 1 FT_INT32: TRUE-->ENC_LITTLE_ENDIAN 11 FT_UINT8: 0-->ENC_BIG_ENDIAN 111 FT_UINT8: FALSE-->ENC_BIG_ENDIAN 17 FT_UINT8: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT16: 0-->ENC_BIG_ENDIAN 68 FT_UINT16: FALSE-->ENC_BIG_ENDIAN 18 FT_UINT16: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT24: FALSE-->ENC_BIG_ENDIAN 70 FT_UINT32: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT32: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT64: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT64: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT_STRING: FALSE-->ENC_ASCII|ENC_BIG_ENDIAN svn path=/trunk/; revision=39442
2011-06-09- Replace jpeg_jfif decoder, with more generic mime_file (no more 64KB limit!).Jakub Zawadzki1-0/+1
- Add new dissector packet-mime-encap which understands mime_file fragmentation. svn path=/trunk/; revision=37636
2011-05-23From Micheal Mann via bug 2794: Fix some display filter field names.Chris Maynard1-1/+1
svn path=/trunk/; revision=37351
2011-03-24From Dirk: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2930 :Jeff Morriss1-56/+28
Make the image (png, gif, jfif) dissectors "new style" so that they don't dissect data that does not belong to them. Modify the HTTP dissector to call heuristic dissectors on the body if the registered subdissector does not accept/dissect the data. From me: don't use assert() and don't add a preference to the HTTP dissector for this behavior: it makes sense to behave like that by default. svn path=/trunk/; revision=36305
2011-03-22From Dirk via bug #5771: Add heuristic dissector for images and HTTP Stephen Fisher1-2/+17
Also add to AUTHORS file. svn path=/trunk/; revision=36253
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-1/+1
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2009-10-17From Marton Nemeth:Stig Bjørlykke1-0/+2
Add the ability to open JPEG/JFIF files directly. From me: Some code cleanup + add new file to cmake. svn path=/trunk/; revision=30588
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-47/+14
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2008-09-30Minor proto_reg_handoff cleanup: use find_dissector when appropriate.Bill Meier1-1/+1
svn path=/trunk/; revision=26308
2008-05-06From Peter Kjellerstedt (bug 2521):Stig Bjørlykke1-0/+1
Add MARKER_COM to vals_marker[]. svn path=/trunk/; revision=25246
2007-11-29From Didier Gautheron: Fix for Bug #1862: JPEG (JFIF) packet always malformedBill Meier1-1/+1
svn path=/trunk/; revision=23662
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-3/+3
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors Stephen Fisher1-3/+3
svn path=/trunk/; revision=21233
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2005-11-01Use g_print() instead of fprintf() to write messages to the debug console.Olivier Biot1-3/+2
svn path=/trunk/; revision=16373
2005-08-10tvb_get_stringz() to tvb_get_ephemeral_stringz() conversion.Ronnie Sahlberg1-11/+3
svn path=/trunk/; revision=15275
2005-08-08various code cleanup:Ulf Lamping1-4/+0
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-1/+1
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-01-05Free the image type string as soon as we're done with it, so that weGuy Harris1-1/+8
don't leak it (even if we throw an exception processing the image). svn path=/trunk/; revision=12955
2004-12-20Use "plurality()" rather than locally-defined "PLURALIZE()" macros, andGuy Harris1-2/+0
get rid of the definition of "PLURALIZE()" in modules that don't use it. svn path=/trunk/; revision=12791
2004-10-30Squelch some compile warnings.Guy Harris1-3/+4
svn path=/trunk/; revision=12443
2004-10-28The offset to the first IFD in a TIFF file is 4 bytes long, not 2 bytesGuy Harris1-55/+84
long. The offset is relative to the first byte of the TIFF structure, which is after the "Exif\0" *and* the extra byte after "Exif\0". Loop over all IFDs. Sanity check the offset to the first IFD and the offset in each IFD to the next IFD. svn path=/trunk/; revision=12424
2004-09-23From Jelmer Vernooij: fix a comment.Guy Harris1-1/+1
svn path=/trunk/; revision=12071
2004-09-01Get rid of some unused variables.Guy Harris1-2/+4
Put into the protocol tree for APP1 and APP2 segments not otherwise handled an item for the remaining segment data. svn path=/trunk/; revision=11870
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1198
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410