Add a check to make sure we don't try to allocate a huge buffer. If
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Mar 2009 22:51:59 +0000 (22:51 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Mar 2009 22:51:59 +0000 (22:51 +0000)
commit7a4d467dd16f58a711b6ed4276f0ff1e06f79fe2
tree3c9a1a2513fa32cf26ad76fe5c2989c9eaadc720
parent406b9044f983ba3e6360e1b109ae928756f057ad
Add a check to make sure we don't try to allocate a huge buffer. If
we get an improper buffer length, throw an error instead of
aborting. Clean up the debugging code.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27918 f5534014-38df-0310-8fa8-9805f1628bb7
wiretap/k12.c