Guy Harris [Sun, 7 Jul 2013 21:38:04 +0000 (21:38 -0000)]
Clean up comments.
svn path=/trunk/; revision=50440
Jakub Zawadzki [Sun, 7 Jul 2013 21:32:12 +0000 (21:32 -0000)]
ups? first add + 1, then multiply.
svn path=/trunk/; revision=50438
Martin Kaiser [Sun, 7 Jul 2013 19:03:03 +0000 (19:03 -0000)]
fixed a typo in the expert infos
svn path=/trunk/; revision=50435
Jakub Zawadzki [Sun, 7 Jul 2013 17:13:17 +0000 (17:13 -0000)]
tree_is_expanded: make it bit array.
Right now we have about 36K of ett items, and tree_is_expanded takes: 144K of memory (36K*sizeof(gboolean))
By making tree_is_expanded bit array, it reduce size to 4.5K (36K/8)
svn path=/trunk/; revision=50434
Jakub Zawadzki [Sun, 7 Jul 2013 16:33:49 +0000 (16:33 -0000)]
Make tree_is_expanded array static, add setter/getter function.
svn path=/trunk/; revision=50433
Evan Huus [Sun, 7 Jul 2013 16:18:18 +0000 (16:18 -0000)]
A bit more of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8828
svn path=/trunk/; revision=50432
Gerald Combs [Sun, 7 Jul 2013 14:03:38 +0000 (14:03 -0000)]
[Automatic manuf, services and enterprise-numbers update for 2013-07-07]
svn path=/trunk/; revision=50429
Evan Huus [Sat, 6 Jul 2013 23:53:09 +0000 (23:53 -0000)]
Revert part of r50415. As pointed out by Jakub, some of the value_string
functions are called when no dissection is going on, and so can't use
wmem_packet_scope().
svn path=/trunk/; revision=50428
Jakub Zawadzki [Sat, 6 Jul 2013 23:46:31 +0000 (23:46 -0000)]
proto.c: add few more cases when oct/hex can show up with signed number
remove invalid comment about HEX/OCT print not supported for signed numbers.
svn path=/trunk/; revision=50427
Guy Harris [Sat, 6 Jul 2013 23:29:50 +0000 (23:29 -0000)]
Check for an OS X deployment target early, so that as many
tests using the compiler are done using the flags that
we'll be using when building.
Add a -mmacosx-version-min flag to CFLAGS/CPPFLAGS/LDFLAGS so that the
compiler tests use them. This may, or may not, obviate the need to set
MACOSX_DEPLOYMENT_TARGET in OSX_DEPLOY_TARGET.
svn path=/trunk/; revision=50426
Guy Harris [Sat, 6 Jul 2013 23:00:56 +0000 (23:00 -0000)]
We need Cairo if we're building on 10.5 *or* if we're building *for*
10.5 on a later OS.
Fix the download path for libpng, and update the version to the
currently-available version.
svn path=/trunk/; revision=50425
Evan Huus [Sat, 6 Jul 2013 22:03:52 +0000 (22:03 -0000)]
From Marko Hrastovec via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8886
Fix an error in the scaling factor of field I062/380 subfield #28 in the Asterix
dissector.
svn path=/trunk/; revision=50424
Evan Huus [Sat, 6 Jul 2013 21:55:10 +0000 (21:55 -0000)]
From Peter Hatina via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8888
We're allocating an array of pointers, not an array of objects, so make the
sizeof() reflect that to avoid over-allocating.
svn path=/trunk/; revision=50423
Pascal Quantin [Sat, 6 Jul 2013 21:43:44 +0000 (21:43 -0000)]
Add UE Id to UDP framing protocol
svn path=/trunk/; revision=50422
Guy Harris [Sat, 6 Jul 2013 21:21:54 +0000 (21:21 -0000)]
Use consistent 4-space no-tab indentation.
svn path=/trunk/; revision=50421
Pascal Quantin [Sat, 6 Jul 2013 21:07:42 +0000 (21:07 -0000)]
Count SDUs even when dumping only the MAC header
svn path=/trunk/; revision=50420
Guy Harris [Sat, 6 Jul 2013 19:34:21 +0000 (19:34 -0000)]
Squelch some warnings that show up with, for example, the GCC 4.2.1 that
comes with Xcode 3.2.6 (it's not a real problem, but that requires more
flow analysis than that version of the compiler does, apparently).
svn path=/trunk/; revision=50419
Guy Harris [Sat, 6 Jul 2013 19:32:07 +0000 (19:32 -0000)]
Don't install the GNU autotools on Snow Leopard and earlier; they were
shipped with those versions of OS X, and I had some problems with the
newer versions on Snow Leopard (the Makefile was doing weird stuff that
caused build failures in wsutil, moving .Tlo files to .Plo files; I
didn't investigate futher).
svn path=/trunk/; revision=50418
Evan Huus [Sat, 6 Jul 2013 18:40:56 +0000 (18:40 -0000)]
Use epan-scoped memory for 6lowpan preference names. Another ~300 bytes gone.
svn path=/trunk/; revision=50417
Evan Huus [Sat, 6 Jul 2013 18:31:35 +0000 (18:31 -0000)]
Use epan-scoped memory for XML field strings. Another ~35KB leaks fixed.
Running `tshark -v` (which has the happy effect of doing
epan_init();
epan_cleanup();
with no practical work in-between), now leaks a hair less than 2KB of memory on
my machine. It was over 500KB earlier today :)
svn path=/trunk/; revision=50416
Evan Huus [Sat, 6 Jul 2013 18:25:27 +0000 (18:25 -0000)]
Wmem-ify value-strings. Another ~10KB gone.
svn path=/trunk/; revision=50415
Evan Huus [Sat, 6 Jul 2013 18:14:04 +0000 (18:14 -0000)]
Use epan-scoped memory for h248 packages. Fixes another ~24KB of leaks.
svn path=/trunk/; revision=50414
Evan Huus [Sat, 6 Jul 2013 18:06:56 +0000 (18:06 -0000)]
Regenerate p1 dissector.
svn path=/trunk/; revision=50413
Evan Huus [Sat, 6 Jul 2013 18:01:57 +0000 (18:01 -0000)]
Build dynamic diameter value_string arrays with wmem arrays not garrays.
Fixes another ~60KB of leaks.
svn path=/trunk/; revision=50412
Evan Huus [Sat, 6 Jul 2013 17:47:32 +0000 (17:47 -0000)]
Add wmem_array_sort() which just hands off to the standard library's qsort().
svn path=/trunk/; revision=50411
Guy Harris [Sat, 6 Jul 2013 16:42:30 +0000 (16:42 -0000)]
Add a --enable-osx-deploy-target option to set the deployment target
when building for OS X; that causes the MACOSX_DEPLOYMENT_TARGET
environment variable to be set when building (so that, for example, we
don't use linker features available on the version on which we're
building but not on the minimum OS version for which we're building),
and causes the SDK for that version to be used (so that, for example, we
don't link with libraries with later version numbers than the ones
provided with the OS version for which we're building).
svn path=/trunk/; revision=50410
Evan Huus [Sat, 6 Jul 2013 16:11:36 +0000 (16:11 -0000)]
Remove unused data structures from new expert code. Cleans up another ~17KB
of leaks, and I suspect they won't be necessary (we can always add them back
using wmem if they do turn out to be needed).
svn path=/trunk/; revision=50409
Evan Huus [Sat, 6 Jul 2013 16:08:12 +0000 (16:08 -0000)]
Convert xml's dynamic hf array from a garray to a wmem_array. Cleans up another
~200KB of leaks in epan library.
svn path=/trunk/; revision=50408
Evan Huus [Sat, 6 Jul 2013 13:31:31 +0000 (13:31 -0000)]
Add our license header to plugin moduleinfo.h files. Cleans up a batch of
licensecheck warnings.
svn path=/trunk/; revision=50407
Evan Huus [Sat, 6 Jul 2013 12:54:13 +0000 (12:54 -0000)]
Allocate expert protocol structs with wmem, cleans up a few KB of leaks in
epan_cleanup().
svn path=/trunk/; revision=50406
Evan Huus [Sat, 6 Jul 2013 12:45:33 +0000 (12:45 -0000)]
Build diameter's hf array in a wmem array instead of a garray. Fixes ~270KB of
leak when running epan_cleanup().
svn path=/trunk/; revision=50405
Guy Harris [Sat, 6 Jul 2013 08:33:07 +0000 (08:33 -0000)]
In some versions of some OSes, even <string.h> declares index() under
some circumstances. Use array_index as a variable name instead, to
avoid warnings.
svn path=/trunk/; revision=50404
Guy Harris [Sat, 6 Jul 2013 08:29:01 +0000 (08:29 -0000)]
For C string functions, the header to include is <string.h>, not
<strings.h>.
svn path=/trunk/; revision=50403
Guy Harris [Sat, 6 Jul 2013 06:16:06 +0000 (06:16 -0000)]
Add a "-t <target>" flag to set the deployment target OS version; that
causes a -mmacosx-version-min flag to be used, to keep the compiler and
linker from using features not supported by that OS version, and causes
the support libraries to be built against the SDK for that OS version,
so they don't request library versions later than the one shipped with
that version.
svn path=/trunk/; revision=50402
Evan Huus [Sat, 6 Jul 2013 04:08:07 +0000 (04:08 -0000)]
Trivial code style: use wmem_new in a few places, and remove extraneous
whitespace.
svn path=/trunk/; revision=50401
Evan Huus [Sat, 6 Jul 2013 04:02:08 +0000 (04:02 -0000)]
Simple growable array implementation for wmem.
svn path=/trunk/; revision=50400
Michael Mann [Sat, 6 Jul 2013 02:53:45 +0000 (02:53 -0000)]
Fix display filter errors caught by checkfiltername.pl
svn path=/trunk/; revision=50399
Michael Mann [Sat, 6 Jul 2013 02:52:16 +0000 (02:52 -0000)]
Add support for filterable expert info fields. Statistics don't separate out the expert info fields from the hf_ fields because we're really just looking for display filter name errors, regardless of source.
svn path=/trunk/; revision=50398
Evan Huus [Sat, 6 Jul 2013 02:49:57 +0000 (02:49 -0000)]
Fix the last remnant of https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8160
Correctly calculate delta-displayed time when using two-pass dissection with a
display filter.
svn path=/trunk/; revision=50397
Michael Mann [Sat, 6 Jul 2013 01:20:38 +0000 (01:20 -0000)]
Fix duplicate diplay filter names found by checkfiltername.pl
svn path=/trunk/; revision=50396
Evan Huus [Sat, 6 Jul 2013 00:44:10 +0000 (00:44 -0000)]
From Fabio Tarabelloni via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8718
Zigbee messaging cluster dissector.
svn path=/trunk/; revision=50395
Evan Huus [Sat, 6 Jul 2013 00:01:59 +0000 (00:01 -0000)]
From Chris Bontje via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8860
Numerous changes and fixes to the selfm dissector. Too many to bother listing
here, see the bug for full details.
svn path=/trunk/; revision=50394
Luis Ontanon [Fri, 5 Jul 2013 23:57:07 +0000 (23:57 -0000)]
Yet another iteration:
- improve the parameter api
- Add a parameter set message to the NEW child message to set parameters in bulk in the child
- some more harvestig from tshark
svn path=/trunk/; revision=50393
Evan Huus [Fri, 5 Jul 2013 23:53:25 +0000 (23:53 -0000)]
Fix the use of va_args in the new expert code. Passing a va_list to a ... is
valid, but doesn't do what you actually want most of the time.
svn path=/trunk/; revision=50392
Guy Harris [Fri, 5 Jul 2013 23:27:10 +0000 (23:27 -0000)]
Get rid of extra blank line.
svn path=/trunk/; revision=50391
Guy Harris [Fri, 5 Jul 2013 23:26:15 +0000 (23:26 -0000)]
Add a -u flag to uninstall the support tools and libraries.
svn path=/trunk/; revision=50390
Guy Harris [Fri, 5 Jul 2013 23:19:58 +0000 (23:19 -0000)]
LIBFFI_CFLAGS and LIBFFI_LIBS are defined only to suppress the attempt
to run pkg-config to get their values; they should be set equal to the
values that would be returned by pkg-config for libffi with the --cflags
and --libs arguments, respectively. They should *NOT* include the
values of CFLAGS and LDFLAGS supplied in the environment; those should
be handled separately.
svn path=/trunk/; revision=50389
Evan Huus [Fri, 5 Jul 2013 22:54:51 +0000 (22:54 -0000)]
Fix compile errors: remove unused parameters, fix format string.
svn path=/trunk/; revision=50388
Michael Mann [Fri, 5 Jul 2013 20:47:24 +0000 (20:47 -0000)]
Major cleanup to ICQ dissector. Still needs a bunch of proto_tree_add_text -> proto_tree_add_xxx conversion (although the conversion seems simple but tedious).
The big problem appears to be that this dissector doesn't support an ICQ version in use today. Maybe having it look less scary will encourage someone to submit a patch that supports a more recent version.
svn path=/trunk/; revision=50387
Martin Kaiser [Fri, 5 Jul 2013 18:37:36 +0000 (18:37 -0000)]
fix compiler warning
packet-mpls-echo.c: In function 'dissect_mpls_echo_tlv':
packet-mpls-echo.c:1136:38: error: 'ddsti' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
packet-mpls-echo.c:1065:17: note: 'ddsti' was declared here
svn path=/trunk/; revision=50386
Michael Mann [Fri, 5 Jul 2013 14:22:35 +0000 (14:22 -0000)]
Make checkAPIs.pl a little more discerning when looking for too many proto_tree_add_text()s. I believe the intent was to ignore "small" dissectors that didn't have enough fields to qualify, but the previous logic ignored dissectors that were (almost) all proto_tree_add_text and no proto_tree_add_xxx.
I'm flexible on the definition of "small" (20 "fields"), but I think checkAPIs should flag the "all proto_tree_add_text" dissectors.
svn path=/trunk/; revision=50385
Michael Mann [Fri, 5 Jul 2013 03:10:36 +0000 (03:10 -0000)]
Batch of filterable expert infos.
svn path=/trunk/; revision=50384
Guy Harris [Thu, 4 Jul 2013 23:16:23 +0000 (23:16 -0000)]
Use xcrun --show-sdk-path to find out where the system include files are
hidden, rather than a "compile a program" hack.
svn path=/trunk/; revision=50383
Guy Harris [Thu, 4 Jul 2013 18:11:59 +0000 (18:11 -0000)]
More details in a comment.
svn path=/trunk/; revision=50382
Pascal Quantin [Thu, 4 Jul 2013 12:11:54 +0000 (12:11 -0000)]
Add channel id to UDP framing protocol and allow to dissect only the header of a signalling PDU (as we do for data PDUs)
svn path=/trunk/; revision=50381
Luis Ontanon [Thu, 4 Jul 2013 05:34:25 +0000 (05:34 -0000)]
some more harvesting from tshark
svn path=/trunk/; revision=50380
Guy Harris [Thu, 4 Jul 2013 00:39:54 +0000 (00:39 -0000)]
Add more comments indicating what this is doing.
svn path=/trunk/; revision=50379
Guy Harris [Thu, 4 Jul 2013 00:12:27 +0000 (00:12 -0000)]
Global variables considered harmful.
svn path=/trunk/; revision=50378
Michael Mann [Wed, 3 Jul 2013 23:43:26 +0000 (23:43 -0000)]
expert_add_info_format_text + proto_tree_add_text = proto_tree_add_expert_format, where applicable.
svn path=/trunk/; revision=50377
Jakub Zawadzki [Wed, 3 Jul 2013 22:57:53 +0000 (22:57 -0000)]
PROTO_REGISTRAR_GET_NTH() not needed after TRY_TO_FAKE_THIS_ITEM
svn path=/trunk/; revision=50376
Pascal Quantin [Wed, 3 Jul 2013 21:26:12 +0000 (21:26 -0000)]
Fix a null pointer dereference in downlink direction
svn path=/trunk/; revision=50374
Pascal Quantin [Wed, 3 Jul 2013 20:03:52 +0000 (20:03 -0000)]
Clear info column when using UDP framing
svn path=/trunk/; revision=50373
Jakub Zawadzki [Wed, 3 Jul 2013 17:44:46 +0000 (17:44 -0000)]
Optimize proto_item_prepend_text: if there's no fi->rep avoid one strlcpy().
svn path=/trunk/; revision=50372
Stephen Fisher [Wed, 3 Jul 2013 17:07:23 +0000 (17:07 -0000)]
Change grammar (obsoleted -> obsolete) in RIP preferences.
svn path=/trunk/; revision=50371
Alexis La Goutte [Wed, 3 Jul 2013 16:46:29 +0000 (16:46 -0000)]
From Oliver Gasser via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8863 Add CAA support to DNS dissector
Add informationa about Certificate Authority Authorization (CAA) data to the DNS dissector. See the RFC [1] for more information. Suggestions and improvements are welcome.
[1] http://tools.ietf.org/html/rfc6844
svn path=/trunk/; revision=50370
Alexis La Goutte [Wed, 3 Jul 2013 16:46:20 +0000 (16:46 -0000)]
Remove trailing whitespace
svn path=/trunk/; revision=50369
Alexis La Goutte [Wed, 3 Jul 2013 16:46:11 +0000 (16:46 -0000)]
Fix some warnings from fix-encoding-args tools.
svn path=/trunk/; revision=50368
Alexis La Goutte [Wed, 3 Jul 2013 16:46:01 +0000 (16:46 -0000)]
Fix some warnings from fix-encoding-args tools.
svn path=/trunk/; revision=50367
Alexis La Goutte [Wed, 3 Jul 2013 16:45:52 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50366
Alexis La Goutte [Wed, 3 Jul 2013 16:45:42 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50365
Alexis La Goutte [Wed, 3 Jul 2013 16:45:33 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50364
Alexis La Goutte [Wed, 3 Jul 2013 16:45:24 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50363
Alexis La Goutte [Wed, 3 Jul 2013 16:45:14 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50362
Alexis La Goutte [Wed, 3 Jul 2013 16:45:05 +0000 (16:45 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50361
Alexis La Goutte [Wed, 3 Jul 2013 16:44:55 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50360
Alexis La Goutte [Wed, 3 Jul 2013 16:44:45 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50359
Alexis La Goutte [Wed, 3 Jul 2013 16:44:36 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50358
Alexis La Goutte [Wed, 3 Jul 2013 16:44:26 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50357
Alexis La Goutte [Wed, 3 Jul 2013 16:44:17 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50356
Alexis La Goutte [Wed, 3 Jul 2013 16:44:08 +0000 (16:44 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50355
Alexis La Goutte [Wed, 3 Jul 2013 16:43:58 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50354
Alexis La Goutte [Wed, 3 Jul 2013 16:43:49 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50353
Alexis La Goutte [Wed, 3 Jul 2013 16:43:40 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50352
Alexis La Goutte [Wed, 3 Jul 2013 16:43:31 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50351
Alexis La Goutte [Wed, 3 Jul 2013 16:43:21 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50350
Alexis La Goutte [Wed, 3 Jul 2013 16:43:12 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50349
Alexis La Goutte [Wed, 3 Jul 2013 16:43:02 +0000 (16:43 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50348
Alexis La Goutte [Wed, 3 Jul 2013 16:42:53 +0000 (16:42 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50347
Alexis La Goutte [Wed, 3 Jul 2013 16:42:44 +0000 (16:42 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50346
Alexis La Goutte [Wed, 3 Jul 2013 16:42:35 +0000 (16:42 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50345
Alexis La Goutte [Wed, 3 Jul 2013 16:42:25 +0000 (16:42 -0000)]
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50344
Alexis La Goutte [Wed, 3 Jul 2013 16:42:15 +0000 (16:42 -0000)]
There dissectors is not ASN1 dissectors.... !
svn path=/trunk/; revision=50343
Alexis La Goutte [Wed, 3 Jul 2013 16:42:00 +0000 (16:42 -0000)]
Fix typo (Missing CR)
svn path=/trunk/; revision=50342
Irene RĂ¼ngeler [Wed, 3 Jul 2013 14:12:44 +0000 (14:12 -0000)]
Attachment #11134 proposed as fix for bug #8899 by Peter Hatina
svn path=/trunk/; revision=50341
Michael Mann [Wed, 3 Jul 2013 12:42:17 +0000 (12:42 -0000)]
Fix infinite loop in VTP dissector. Bug 8887 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8887)
svn path=/trunk/; revision=50340
Pascal Quantin [Wed, 3 Jul 2013 12:01:12 +0000 (12:01 -0000)]
Check actx->private_data validity before using it
svn path=/trunk/; revision=50339
Pascal Quantin [Wed, 3 Jul 2013 08:53:47 +0000 (08:53 -0000)]
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8880 :
Check actx->private_data validity before using it
svn path=/trunk/; revision=50338
Michael Mann [Wed, 3 Jul 2013 02:59:31 +0000 (02:59 -0000)]
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Chris Maynard [Wed, 3 Jul 2013 02:28:26 +0000 (02:28 -0000)]
Fix Coverity CID 660 (Negative array index read) by holding off the assignment to yytos until after we check that pParser->yyidx is non-negative.
See also: http://cwe.mitre.org/data/definitions/129.html
#BACKPORT(1.10)
svn path=/trunk/; revision=50336
Chris Maynard [Wed, 3 Jul 2013 01:47:18 +0000 (01:47 -0000)]
Fix Coverity CID 280323 (Free of array-typed value) by ensuring that tpltname doesn't point to the buf[] stack array before attempting to free it.
#BACKPORT(1.10)
svn path=/trunk/; revision=50335