aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/wmem_strbuf.h
AgeCommit message (Collapse)AuthorFilesLines
2021-07-26Move wmem to wsutilJoão Valverde1-120/+0
This allows wmem to be used from other libraries, namely wsutil. It is often the case that a funtion exists in wsutil and cannot be used with a wmem scope, requiring some code duplication or extra memory allocations, or vice-versa, code in epan cannot be moved to wsutil because it has a wmem dependency. To this end wmem is moved to wsutil. Scope management remains part of epan because those scope semantics are specific to dissection.
2020-10-15Replace ill-formed UTF-8 byte sequences with replacement characterJohn Thacker1-0/+7
Implement the Unicode Standard "best practices" for replacing ill-formed sequences with the Unicode REPLACEMENT CHARACTER. Add wmem_strbuf_append_len for appending strings with embedded null characters. Clarify why wmem_strbuf_grow() doesn't always ensure that there's enough room for a new string, and short-circuit some tests there. Related to #14948
2019-10-14Protobuf: Add show_details preferences. Fix two bugs.Huang Qiangxiong1-0/+4
1. Add show_details preferences. Disable it will hidden names of message/field/enum, field number, and other details. 2. Have only one popup message with all the errors listed, that are found during parsing .proto files. (Buffer errors and print once) Loading .proto files and checking message types of UDP port will be done only when protobuf dissector has been called. 3. Support parsing .proto files in legacy MAC file format (that newline is '\r') or mixed newline (\r + \n) file format. Change-Id: I97bcde000957e4cd1cce98a7f61120d03027423e Reviewed-on: https://code.wireshark.org/review/34736 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-08wmem: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: Iad9a7a8a26bc6a7189a4578dfbcec1c2b3cc376e Reviewed-on: https://code.wireshark.org/review/25692 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-29Implement finalize() method for wmem strbuf.Evan Huus1-0/+9
Change-Id: Ib7a2b0d348b3624f41253e2d0995a4a38a9fe45d Reviewed-on: https://code.wireshark.org/review/859 Reviewed-by: Evan Huus <eapache@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>
2013-06-19Add wmem_strbuf_new_label as just a sized new for label lengths.Evan Huus1-0/+3
svn path=/trunk/; revision=50039
2013-05-26First batch of doxygen for wmem. Remove some things from README.wmem now thatEvan Huus1-0/+12
they're in doxygen instead. svn path=/trunk/; revision=49583
2013-04-26Wmem string-buffer improvements:Evan Huus1-0/+8
- better tests - fix a bug caught by the better tests - implement append_c and append_unichar, with tests Wmem string-buffers now have feature parity with their emem equivalents, so remove them from the TODO list. svn path=/trunk/; revision=49060
2013-04-25Annotate wmem functions for better compiler warnings and optimization.Evan Huus1-3/+6
svn path=/trunk/; revision=49041
2013-04-24Add truncate function to wmem strbuf.Evan Huus1-0/+4
svn path=/trunk/; revision=49010
2013-03-09Add the appropriate new WS_DLL_* declarations to the wmem API.Evan Huus1-0/+6
svn path=/trunk/; revision=48220
2012-12-29Implement wmem_strbuf_append_printf.Evan Huus1-0/+3
svn path=/trunk/; revision=46846
2012-12-19Make the wmem string-buffer marginally useful but providing some accessors soEvan Huus1-0/+6
it's not a write-only data structure. svn path=/trunk/; revision=46605
2012-12-15Basic wmem string-buffer. Not yet feature-equivalent to the emem version.Evan Huus1-0/+69
svn path=/trunk/; revision=46540