check the length parameter for tvb_get_unicode_string() and
authorMartin Kaiser <wireshark@kaiser.cx>
Sat, 22 Dec 2012 22:35:07 +0000 (22:35 -0000)
committerMartin Kaiser <wireshark@kaiser.cx>
Sat, 22 Dec 2012 22:35:07 +0000 (22:35 -0000)
commit50945da41ce437aa10a76a02f86d8399bd194b7e
tree26adebe67166bcc8ffdfca099c66da116e4d2682
parent70f6c44703516f649d2e210942e53a3dcc7210ca
check the length parameter for tvb_get_unicode_string() and
tvb_get_ephemeral_unicode_string(), throw an exception for invalid
lengths (including -1, but length==-1 does not work for other tvb string
functions either)

I believe this is the proper fix for
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8112

svn path=/trunk/; revision=46705
epan/tvbuff.c