aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/file-png.c
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-12-13Adjust proto_tree_add_[float|double]_format_value calls to use unit stringMichael Mann1-18/+18
Several calls to proto_tree_add_[float|double]_xxx could be better served using BASE_UNIT_STRING with a "unit string" in hf_ field. Added a few more "common" unit string values to unit_strings.[ch] Change-Id: Id0da7b579403898d20c2667d6c4abcd59d5a48d4 Reviewed-on: https://code.wireshark.org/review/19241 Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-12-20[png] add two more chunk namesMartin Kaiser1-0/+4
Change-Id: Ic6c6113e91adb416f19aeea5ed85d5deb61832d4 Reviewed-on: https://code.wireshark.org/review/12746 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2015-12-09new_register_dissector -> register_dissector for dissector directory.Michael Mann1-1/+1
Change-Id: Ie39ef054a4a942687bd079f3a4d8c2cc55d5f22c Reviewed-on: https://code.wireshark.org/review/12485 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-07-17Remove all preferences related to enabling/disabling heuristic dissectors.Michael Mann1-2/+2
The preferences are still supported for backwards compatibility, but the heuristic_protos file has final say on the "preference" to enable/disable a heuristic dissector. Also add parameter to heur_dissector_add() for the "default" enable/disable of a heuristic dissector. With this parameter, a few more (presumably weak) heuristic dissectors have been "registered" but of course default to being disabled. Change-Id: I51bebb2146ef3fbb8418d4f5c7f2cb2b58003a22 Reviewed-on: https://code.wireshark.org/review/9610 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-07-12Add "user presentable" and "unique string ids" to heuristic table entries.Michael Mann1-2/+2
This allows better presentation of heuristic dissectors to the end user. Change-Id: I2ff3985ab914e83c2989880cc0c7b9904045b3f6 Reviewed-on: https://code.wireshark.org/review/9602 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-06-23Remove more deprecated tvb_lengthEvan Huus1-1/+1
Change-Id: Iac23a6c804ad3720d37186559477909b2ff33eb2 Reviewed-on: https://code.wireshark.org/review/9042 Reviewed-by: Evan Huus <eapache@gmail.com>
2015-06-22Remove more tvb_lengthEvan Huus1-2/+2
Change-Id: I940704e927001b2a051a59fd0738e7a02328472b Reviewed-on: https://code.wireshark.org/review/9031 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-2/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-06-22convert to proto_tree_add_subtree[_format]Michael Mann1-4/+3
Change-Id: I358bfaa4e5d40cd01b766f614f8bd0dbaf611dd0 Reviewed-on: https://code.wireshark.org/review/2508 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-3/+3
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-3/+3
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-1/+1
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is. Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d Reviewed-on: https://code.wireshark.org/review/1999 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-09iTXt chunk nameMartin Kaiser1-0/+2
Change-Id: I0310368319fe70782bd2c3b48e100292cd93d8c4 Reviewed-on: https://code.wireshark.org/review/1042 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-03For single-precision calculations, use single-precision constants.Guy Harris1-1/+1
Otherwise the calculation is done in double precision, and some compilers complain of a double-precision value being assigned to a single-precision variable. Change-Id: I78317a0e9b625ae4f34df3597fdb5eba711bcae2 Reviewed-on: https://code.wireshark.org/review/934 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-03For single-precision calculations, use single-precision constants.Guy Harris1-8/+8
Otherwise the calculation is done in double precision, and some compilers complain of a double-precision value being assigned to a single-precision variable. Change-Id: I41699fa69e21a2c42d54867765f9fa35a9ab7414 Reviewed-on: https://code.wireshark.org/review/933 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-04-02dissect gama chunkMartin Kaiser1-1/+18
Change-Id: I4fcdb926db9d2f23f5901586b5d97b727237db3d Reviewed-on: https://code.wireshark.org/review/930 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-02dissect the chrm chunkMartin Kaiser1-0/+89
Change-Id: I922169d4e246470e018d3db53964ae3f794642f6 Reviewed-on: https://code.wireshark.org/review/927 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-04-01use tvb_find_guint8() to find the 0 termination in a text chunkMartin Kaiser1-12/+11
keyword and text are latin1 strings Change-Id: I01637efa2ebf4d1e1a83f6001737066dc1258e6c Reviewed-on: https://code.wireshark.org/review/913 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-27dissect sRGB chunkMartin Kaiser1-0/+23
Change-Id: I5a9eefb7f5108de0e46b70453a4485b1cbc3983d Reviewed-on: https://code.wireshark.org/review/850 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-27use an expert info if a png chunk is too large for usMartin Kaiser1-8/+20
Change-Id: I6a06bf297ef68ca351deff2e08eec7cd12ba8fe0 Reviewed-on: https://code.wireshark.org/review/849 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-26two more chunk namesMartin Kaiser1-0/+4
Change-Id: I5a34a59c88a4119be2fac4acdd352d474ffc62cd Reviewed-on: https://code.wireshark.org/review/840 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-26add some more chunk namesMartin Kaiser1-0/+8
Change-Id: I6d294a901af88f993ca6a44ababad194fb44a693 Reviewed-on: https://code.wireshark.org/review/839 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-26clean up the png dissectorMartin Kaiser1-64/+69
use value_string instead of our own data type read the type string in one go Change-Id: I115c99c4636540702c1fd301f09a92a0dd466fcd Reviewed-on: https://code.wireshark.org/review/838 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-26use the correct png chunk lenMartin Kaiser1-1/+1
the parameter for proto_tree_add_text() is the length, not the end offset Change-Id: Ie24d5982b7ff13363061fb087438dd714cae748a Reviewed-on: https://code.wireshark.org/review/837 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
2014-03-24minor cleanupMartin Kaiser1-282/+280
- replace TABs with spaces - add editor modelines - remove unnecessary NULL checks Change-Id: Ic6024fc4b6aec56c8cafd39c707e20485fa6cca7 Reviewed-on: https://code.wireshark.org/review/819 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
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-29MIME: Rename image dissectors to file dissectors.Michal Labedzki1-0/+480
Change-Id: Ie160733ceeed23ff96ddccfbf0ca2e7694789ff8