aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-per.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2010-01-19Fix gcc -Wshadow warningsBill Meier1-33/+33
svn path=/trunk/; revision=31561
2009-12-09Constrained SEQ OF in PER encoding associated with wrong length;Gerasimos Dimitriadis1-1/+8
also take into account cases of length 0. svn path=/trunk/; revision=31219
2009-11-22No non-ASCII characters, please.Guy Harris1-1/+1
svn path=/trunk/; revision=31049
2009-11-22Handle lenght restriction extension of restricted strings.Anders Broman1-12/+31
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4251 svn path=/trunk/; revision=31047
2009-11-20Handle extended PER bitstrings.Anders Broman1-1/+33
svn path=/trunk/; revision=31034
2009-11-04Added offset fix from bug 4202, error introduced in r30770.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30815
2009-10-31assert() doesn't throw an exception, it just immediately crashes theGuy Harris1-1/+2
app, and DISSECTOR_ASSERT() throws an exception, but claims the problem is a dissector bug, not a malformed packet. Presumably the error in question is the result of a malformed packet, so throw ReportedBoundsError to indicate that (it's not really the *right* exception, but the right exception doesn't exist). svn path=/trunk/; revision=30776
2009-10-30- In new_octet_aligned_subset_bits() the length check must be on octet not bits.Anders Broman1-24/+36
- try to make the code a bit more readable. svn path=/trunk/; revision=30770
2009-10-25From Jakub Zawadzki:Anders Broman1-2/+1
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691
2009-10-18new_octet_aligned_subset_bits(): call tvb_ensure_bytes_exist() beforeJeff Morriss1-60/+69
attmepting to malloc memory to ensure we've been asked to decode a reasonable number of bits (and thus are asking for a reasonable number of bytes from malloc()). That should fix the fuzz failure in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4138 Add a comment to new_octet_aligned_subset() asking why we're resetting the length to tvb_length()--that means we'll never throw an exception. svn path=/trunk/; revision=30611
2009-10-12Added a check for num_opts to avoid a theoretical undefined behavior.Stig Bjørlykke1-0/+3
svn path=/trunk/; revision=30537
2009-10-06From Didier Gautheron:Anders Broman1-2/+4
ep memory can't be used for tvbs defined as data_source. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4054 svn path=/trunk/; revision=30376
2009-07-16From Sean Yunjnz:Anders Broman1-2/+17
Problem in packet-per.c for ASN.1 PER Encoding. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3733 svn path=/trunk/; revision=29124
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-2/+2
(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
2009-05-15Froim Vincent Helfre:Anders Broman1-6/+13
Fix issues with unaligned PER. svn path=/trunk/; revision=28374
2009-05-13Apply some of the patches from:Anders Broman1-8/+4
http://wiki.wireshark.org/Development/Optimization svn path=/trunk/; revision=28356
2009-04-16From Vincent Helfre and Me:Anders Broman1-1/+1
- Dissect GSM messages. - Add functions to libwireshark needed by plugins. svn path=/trunk/; revision=28068
2009-04-14do not report encoding error for sequence extension with length 0Tomas Kukosa1-9/+6
highlight one byte also for NULL type svn path=/trunk/; revision=28043
2009-04-10Handle PER constrained integer > 32 bits, show more internal PER fields.Anders Broman1-17/+28
svn path=/trunk/; revision=28026
2009-04-02Remove #if 0Anders Broman1-2/+1
svn path=/trunk/; revision=27931
2009-03-31From Vincent Helfre:Anders Broman1-15/+35
Fix unaligned bitfields. svn path=/trunk/; revision=27907
2009-03-26From Vincent Helfre:Anders Broman1-4/+2
Fix unaligned bitfields. From me activate the SEQUENCE OF patch. svn path=/trunk/; revision=27853
2009-03-25Make it possible to check for extension marker in SEQUENCE OF and SET OF.Anders Broman1-3/+20
Fore some reason the trace in bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3360 does not decode properly if dissecting the exension marker so leave that code #if 0:ed out for now. svn path=/trunk/; revision=27848
2009-03-03From Neil Piercy (bug 3299):Stig Bjørlykke1-1/+20
Added support for length greater than 127 (less than 16K). svn path=/trunk/; revision=27603
2008-12-20Fix various typos and spelling errors (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27065
2008-10-31Do not call a variable value_string as we have a struct with this name.Stig Bjørlykke1-5/+5
svn path=/trunk/; revision=26658
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=26648
2008-07-26Get rid of few warnings (unused generated code, signed/unsigned mismatch)Tomas Kukosa1-3/+3
svn path=/trunk/; revision=25839
2008-06-19Add an expert item warning if a full sequence isn't decoded. ( take 2)Anders Broman1-12/+11
svn path=/trunk/; revision=25486
2008-06-19Initialize new_offset.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=25485
2008-06-19Add an expert item warning if a full sequence isn't decoded.Anders Broman1-0/+12
svn path=/trunk/; revision=25484
2008-04-13Fix the crash from bug 2432. I don't really like that we use a new tvbStig Bjørlykke1-14/+16
and a new data source for displaying unaligned octet strings, because the user cannot easily see where in the data package the values are from. Maybe we should implement a "Packet Bits" pane for bit protocols? Or just an option to turn the Bytes pane to a Bits pane? Another problem is that the generated pdml (from the bug report) does not generate correct data for these fields, as the "pos" value is always zero (because we use a new tvb with offset 0). But I suppose it's difficult to fix this with byte values... svn path=/trunk/; revision=24992
2008-03-19Return value tvb if pressent from all branches.Anders Broman1-0/+4
svn path=/trunk/; revision=24698
2008-03-19fix from Anders: offset->boffsetTomas Kukosa1-1/+1
svn path=/trunk/; revision=24697
2008-03-18Handle the case where length is > remaining tvbAnders Broman1-8/+10
trace in: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1809 svn path=/trunk/; revision=24691
2008-03-01Rewrote to use g_strlcpy and g_strlcat.Stig Bjørlykke1-22/+23
svn path=/trunk/; revision=24525
2008-01-23Get rid of non-ASCII characters.Guy Harris1-1/+1
svn path=/trunk/; revision=24171
2008-01-15Moved a G_GINT64_CONSTANT to a more correct position.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=24108
2008-01-15Use G_GINT64_CONSTANT(hope it makes the OS X build bot happy).Anders Broman1-1/+1
Unused variables fix to camel. svn path=/trunk/; revision=24106
2008-01-15Use G_GINT64_CONSTANT(hope it makes the build bot happy).Anders Broman1-3/+3
svn path=/trunk/; revision=24105
2008-01-15Use G_GINT64_MODIFIER hope it makes the build bot happy.Anders Broman1-1/+1
Probbably needed in x2ap as well (needs asn2wrs support or .cnf magic). svn path=/trunk/; revision=24104
2008-01-15make per_constrained_integer handle 64bits needed for X2AP.Anders Broman1-0/+247
svn path=/trunk/; revision=24097
2008-01-03set actx->created_item for object identifier typeTomas Kukosa1-3/+2
svn path=/trunk/; revision=23994
2007-12-28support for additionally SIZE constrained TypereferenceTomas Kukosa1-0/+38
the support is only semiautomated as this feature does not occur very often use this feature for the TBCD-STRING in the H.225 dissector svn path=/trunk/; revision=23958
2007-12-18do not align before enumerated extensionTomas Kukosa1-4/+0
svn path=/trunk/; revision=23916
2007-11-01Get rid of most of the legacy oid stuff.Anders Broman1-2/+2
svn path=/trunk/; revision=23333
2007-10-29asn2wrsTomas Kukosa1-8/+15
- parameterized object class assignment - octet string with extensible size constraint - RELATIVE-OID type (still not supported in packet-per/ber) packet-per - octet string with extensible size constraint more dissect_per_... functions exported from libwireshark.dll PER dissectors regenerated add forgotten packet-h323-template.h fix svn properties for h323 files svn path=/trunk/; revision=23309
2007-10-22add flags for optional fields of EXTERNAL type into asn1_ctx_t structTomas Kukosa1-0/+3
svn path=/trunk/; revision=23238
2007-10-17make dissect_per_length_determinant() privateTomas Kukosa1-1/+4
svn path=/trunk/; revision=23214