Skip to content
Snippets Groups Projects
Select Git revision
  • ebfcf6fb5ad7ef3dbe319ca95f09334735ea2967
  • master default protected
  • release-4.2
  • release-4.0
  • release-3.6
  • cherry-pick-52943e58
  • release-3.4
  • master-3.2
  • master-3.0
  • master-2.6
  • master-2.4
  • master-2.2
  • master-2.0
  • lts-1.12.1
  • master-1.12
  • lts-1.8.2
  • master-1.10
  • lts-1.2.11
  • master-1.8
  • master-1.6
  • master-1.4
  • v3.6.22rc0
  • v4.0.14rc0
  • v4.2.4rc0
  • wireshark-3.6.21
  • v3.6.21
  • wireshark-4.0.13
  • v4.0.13
  • wireshark-4.2.3
  • v4.2.3
  • v4.2.3rc0
  • wireshark-4.2.2
  • v4.2.2
  • v3.6.21rc0
  • v4.0.13rc0
  • v4.2.2rc0
  • wireshark-3.6.20
  • v3.6.20
  • wireshark-4.0.12
  • v4.0.12
  • wireshark-4.2.1
41 results

wireshark

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Gilbert Ramirez authored
    it in Novell_NCP_branch, too.
    
    tvb_get_nstringz() needs to terminate a string with a NUL if the
    end of the tvbuff is reached before the maximum_length passed by the
    caller is reached and before a terminating NUL is found. In this case,
    tvb_get_nstringz() returns a -1, but if the string is not artificially
    terminated with a NUL by tvb_get_nstringz(), the
    caller has no idea where the string should end because 1) the
    return value "-1" gives the impression that the string ends
    at the end of the buffer but 2) the string does
    not end at the end of the buffer, but somewhere in the middle, due
    to the packet being shorter than expected.
    
    tvb_get_nstringz() and tvb_get_nstringz0() were both modified.
    
    The FT_STRINGZ case in proto_tree_add_item() is made simpler.
    
    During regression testing, when investigating a regression that I later
    corrected, I discovered that strings added through proto_tree_add_item
    (FT_STRING, FT_STRINGZ, and FT_UINT_STRING) leaked memory due to double
    allocation of the string. The proto_tree_add_string*() functions do
    not leak memory, since they only copy the string once. The memory
    leak was fixed by adding another argument to the static function
    proto_tree_set_string() to let the string ftype code know to g_strdup()
    the string or not.
    
    svn path=/branches/Novell_NCP_branch/; revision=4892
    ebfcf6fb
    History
    Name Last commit Last update