<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/wireshark, branch v1.12.5</title>
<subtitle>WIP Patches to add a samsung-ipc dissector to Wireshark 
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/'/>
<entry>
<title>Build 1.12.5.</title>
<updated>2015-05-12T20:16:01+00:00</updated>
<author>
<name>Gerald Combs</name>
<email>gerald@wireshark.org</email>
</author>
<published>2015-05-12T17:15:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=5819e5b13c0bbd224fde5a4c900ad8e22f09b4cc'/>
<id>5819e5b13c0bbd224fde5a4c900ad8e22f09b4cc</id>
<content type='text'>
Change-Id: I7c81dcbb3f5de9af56e6c6170ea1d3fa5c013245
Reviewed-on: https://code.wireshark.org/review/8436
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I7c81dcbb3f5de9af56e6c6170ea1d3fa5c013245
Reviewed-on: https://code.wireshark.org/review/8436
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't assume file_read() won't itself return WTAP_ERR_SHORT_READ.</title>
<updated>2015-05-12T19:49:44+00:00</updated>
<author>
<name>Guy Harris</name>
<email>guy@alum.mit.edu</email>
</author>
<published>2015-05-12T19:49:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=769dd52cde690f4b2562ed05cbc300135679015c'/>
<id>769dd52cde690f4b2562ed05cbc300135679015c</id>
<content type='text'>
There are some paths where it will.

Change-Id: Ic086fc8160a69b433f8acafd4e387cf9a0c8b38c
Reviewed-on: https://code.wireshark.org/review/8434
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some paths where it will.

Change-Id: Ic086fc8160a69b433f8acafd4e387cf9a0c8b38c
Reviewed-on: https://code.wireshark.org/review/8434
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport some parts of Ia5dba2a6f81151e87b614461349d611cffc16210.</title>
<updated>2015-05-12T17:33:00+00:00</updated>
<author>
<name>Guy Harris</name>
<email>guy@alum.mit.edu</email>
</author>
<published>2015-05-12T17:32:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=986a41a9bb7f472d3c81a4fefe213584800ac287'/>
<id>986a41a9bb7f472d3c81a4fefe213584800ac287</id>
<content type='text'>
This should make sure logcat_open() doesn't report an error for a file
that's not a logcat file, preventing other heuristic open routines from
checking the file.

Change-Id: I4c042459550f6d27f40a76f103d95a7f4e317969
Reviewed-on: https://code.wireshark.org/review/8432
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should make sure logcat_open() doesn't report an error for a file
that's not a logcat file, preventing other heuristic open routines from
checking the file.

Change-Id: I4c042459550f6d27f40a76f103d95a7f4e317969
Reviewed-on: https://code.wireshark.org/review/8432
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport some parts of I5573c6bdca856a304877d9bef643f8c0fa93cdaf.</title>
<updated>2015-05-12T17:10:25+00:00</updated>
<author>
<name>Guy Harris</name>
<email>guy@alum.mit.edu</email>
</author>
<published>2015-05-12T17:06:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=299e2067b8a468b4f5d721f46f8bb620eab8b4ec'/>
<id>299e2067b8a468b4f5d721f46f8bb620eab8b4ec</id>
<content type='text'>
Backport the parts of

  commit 56a09d24dcdcaddae1cb67a18bbc2fd588c427ed
  Author: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
  Date:   Wed Jul 23 12:26:05 2014 +0200

      Try to fix some buildbot warnings

      Most interesting are:
       warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
       warning: ISO C forbids zero-size array [-Wpedantic]
       warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
       warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual
       warning: initializer element is not computable at load time [enabled by default]

      Change-Id: I5573c6bdca856a304877d9bef643f8c0fa93cdaf
      Reviewed-on: https://code.wireshark.org/review/3174
      Petri-Dish: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
      Tested-by: Petri Dish Buildbot &lt;buildbot-no-reply@wireshark.org&gt;
      Reviewed-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;

relevant to this version of wiretap/logcat.c.  They fix "ISO C forbids
zero-size array"; not all compilers we support allow zero-size arrays.

They also make the code a bit more like the version on the trunk.

Change-Id: I6524a8c05c1d945312ec1db7c305422f1021ef2c
Reviewed-on: https://code.wireshark.org/review/8431
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backport the parts of

  commit 56a09d24dcdcaddae1cb67a18bbc2fd588c427ed
  Author: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
  Date:   Wed Jul 23 12:26:05 2014 +0200

      Try to fix some buildbot warnings

      Most interesting are:
       warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
       warning: ISO C forbids zero-size array [-Wpedantic]
       warning: ISO C90 doesn't support unnamed structs/unions [-Wpedantic]
       warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual
       warning: initializer element is not computable at load time [enabled by default]

      Change-Id: I5573c6bdca856a304877d9bef643f8c0fa93cdaf
      Reviewed-on: https://code.wireshark.org/review/3174
      Petri-Dish: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
      Tested-by: Petri Dish Buildbot &lt;buildbot-no-reply@wireshark.org&gt;
      Reviewed-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;

relevant to this version of wiretap/logcat.c.  They fix "ISO C forbids
zero-size array"; not all compilers we support allow zero-size arrays.

They also make the code a bit more like the version on the trunk.

Change-Id: I6524a8c05c1d945312ec1db7c305422f1021ef2c
Reviewed-on: https://code.wireshark.org/review/8431
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce compilator warnings</title>
<updated>2015-05-12T16:31:09+00:00</updated>
<author>
<name>Michal Labedzki</name>
<email>michal.labedzki@tieto.com</email>
</author>
<published>2014-09-22T08:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=09eda88586b0056b80d8ef94ace351a21b38bd80'/>
<id>09eda88586b0056b80d8ef94ace351a21b38bd80</id>
<content type='text'>
warning: cast from 'const guint8 *' (aka 'const unsigned char *') to
	'const guint16 *' (aka 'const unsigned short *') increases required
	alignment from 1 to 2 [-Wcast-align]
warning: cast from 'const guint8 *' (aka 'const unsigned char *') to
	'const struct logger_entry *' increases required alignment
	from 1 to 4 [-Wcast-align]

Change-Id: Ia7091c75353092680f7108da88d1cc647dd15050
Reviewed-on: https://code.wireshark.org/review/8429
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
warning: cast from 'const guint8 *' (aka 'const unsigned char *') to
	'const guint16 *' (aka 'const unsigned short *') increases required
	alignment from 1 to 2 [-Wcast-align]
warning: cast from 'const guint8 *' (aka 'const unsigned char *') to
	'const struct logger_entry *' increases required alignment
	from 1 to 4 [-Wcast-align]

Change-Id: Ia7091c75353092680f7108da88d1cc647dd15050
Reviewed-on: https://code.wireshark.org/review/8429
Reviewed-by: Guy Harris &lt;guy@alum.mit.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Dead Store (Dead assignement/Dead increment) warning found by Clang</title>
<updated>2015-05-12T15:56:28+00:00</updated>
<author>
<name>Alexis La Goutte</name>
<email>alexis.lagoutte@gmail.com</email>
</author>
<published>2014-07-15T06:41:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=3d8f9d4345910e09dca9c851de92d0aed953f7d7'/>
<id>3d8f9d4345910e09dca9c851de92d0aed953f7d7</id>
<content type='text'>
Reviewed-on: https://code.wireshark.org/review/3052
Reviewed-by: Evan Huus &lt;eapache@gmail.com&gt;
(cherry picked from commit ef1b11f622ce61bc363e13ec6b80afaae9642441)

Change-Id: If3d37f7485965485eb75e5fbbe7a35899c004bb8
Reviewed-on: https://code.wireshark.org/review/8349
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://code.wireshark.org/review/3052
Reviewed-by: Evan Huus &lt;eapache@gmail.com&gt;
(cherry picked from commit ef1b11f622ce61bc363e13ec6b80afaae9642441)

Change-Id: If3d37f7485965485eb75e5fbbe7a35899c004bb8
Reviewed-on: https://code.wireshark.org/review/8349
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the x64 builds after the commit:b3b1f7c3aa2233a147294bad833b748d38fba84d</title>
<updated>2015-05-12T15:54:14+00:00</updated>
<author>
<name>Graham Bloice</name>
<email>graham.bloice@trihedral.com</email>
</author>
<published>2014-07-11T21:30:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=560b90ba75f86f8220a0d5e0a88f655860702bbf'/>
<id>560b90ba75f86f8220a0d5e0a88f655860702bbf</id>
<content type='text'>
From Change: 2803

Reviewed-on: https://code.wireshark.org/review/3014
Reviewed-by: Graham Bloice &lt;graham.bloice@trihedral.com&gt;
(cherry picked from commit 804409747357071631867ccbabc16a5575f5f364)

Change-Id: Ib8bad631f2544f5ffc1aa50b274223ef4d6876d3
Reviewed-on: https://code.wireshark.org/review/8348
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From Change: 2803

Reviewed-on: https://code.wireshark.org/review/3014
Reviewed-by: Graham Bloice &lt;graham.bloice@trihedral.com&gt;
(cherry picked from commit 804409747357071631867ccbabc16a5575f5f364)

Change-Id: Ib8bad631f2544f5ffc1aa50b274223ef4d6876d3
Reviewed-on: https://code.wireshark.org/review/8348
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add strlen casts.</title>
<updated>2015-05-12T15:48:00+00:00</updated>
<author>
<name>Gerald Combs</name>
<email>gerald@wireshark.org</email>
</author>
<published>2014-07-11T21:01:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=87fed6b50e761e04d51bf8d216c4f7396c614d41'/>
<id>87fed6b50e761e04d51bf8d216c4f7396c614d41</id>
<content type='text'>
Reviewed-on: https://code.wireshark.org/review/3012
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
(cherry picked from commit e2038e03007faaa29f9ed1cb3619e84bd6e03247)

Change-Id: Ifad67f7d0943b53b007425cb9110623d000776d9
Reviewed-on: https://code.wireshark.org/review/8347
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-on: https://code.wireshark.org/review/3012
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
(cherry picked from commit e2038e03007faaa29f9ed1cb3619e84bd6e03247)

Change-Id: Ifad67f7d0943b53b007425cb9110623d000776d9
Reviewed-on: https://code.wireshark.org/review/8347
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>logcat: improve (crash) robustness, improve names</title>
<updated>2015-05-12T15:38:42+00:00</updated>
<author>
<name>Peter Wu</name>
<email>peter@lekensteyn.nl</email>
</author>
<published>2014-07-03T09:23:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=afeff4f5d0c51d2394f7c0f00ae1c57ad8cd1ded'/>
<id>afeff4f5d0c51d2394f7c0f00ae1c57ad8cd1ded</id>
<content type='text'>
The logcat version detector would crash with ASAN enabled because it did
not validate the payload length and hence a payload length of 0 would
trigger out-of-bounds access. (This happened on non-logcat data.)

This patch tries to get rid of all magic numbers by using a structure,
improves the version detector to validate the payload length and
prevents crashes due to missing nul-terminators in the input. Older
Android kernels would create entries with __pad with random contents, so
that cannot be used to determine version for v1. Instead, use heuristics
on the priority, tag and maybe the msg field.

Furthermore, Android is mostly (if not, always?) Little-Endian, so add
conversions where necessary (just in case WS supports BE arches).

"microseconds" has been renamed to "milliseconds" because that is what
they are, actually. A duplicate logcat_log loop has been refactored
such that one loop is sufficient, instead of separate buffers for each
log part, a single one is now used. get_priority does not really need
a pointer, just make it accept a character.

The output has been validated against v1 and v2 logcat binary formats
with __pad (hdr_size) equal to 0, and on attachment 9906.

Reviewed-on: https://code.wireshark.org/review/2803
Reviewed-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
Tested-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
(cherry picked from commit b3b1f7c3aa2233a147294bad833b748d38fba84d)

Conflicts:
	wiretap/logcat.c

Change-Id: I33bb20b5f9a5e03a231121a784bfffdfba0aba98
Reviewed-on: https://code.wireshark.org/review/8346
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The logcat version detector would crash with ASAN enabled because it did
not validate the payload length and hence a payload length of 0 would
trigger out-of-bounds access. (This happened on non-logcat data.)

This patch tries to get rid of all magic numbers by using a structure,
improves the version detector to validate the payload length and
prevents crashes due to missing nul-terminators in the input. Older
Android kernels would create entries with __pad with random contents, so
that cannot be used to determine version for v1. Instead, use heuristics
on the priority, tag and maybe the msg field.

Furthermore, Android is mostly (if not, always?) Little-Endian, so add
conversions where necessary (just in case WS supports BE arches).

"microseconds" has been renamed to "milliseconds" because that is what
they are, actually. A duplicate logcat_log loop has been refactored
such that one loop is sufficient, instead of separate buffers for each
log part, a single one is now used. get_priority does not really need
a pointer, just make it accept a character.

The output has been validated against v1 and v2 logcat binary formats
with __pad (hdr_size) equal to 0, and on attachment 9906.

Reviewed-on: https://code.wireshark.org/review/2803
Reviewed-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
Tested-by: Michal Labedzki &lt;michal.labedzki@tieto.com&gt;
(cherry picked from commit b3b1f7c3aa2233a147294bad833b748d38fba84d)

Conflicts:
	wiretap/logcat.c

Change-Id: I33bb20b5f9a5e03a231121a784bfffdfba0aba98
Reviewed-on: https://code.wireshark.org/review/8346
Reviewed-by: Gerald Combs &lt;gerald@wireshark.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Diameter reassembly when the captured tvb length is less than 5 bytes.</title>
<updated>2015-05-12T14:04:09+00:00</updated>
<author>
<name>Jeff Morriss</name>
<email>jeff.morriss.ws@gmail.com</email>
</author>
<published>2015-05-11T19:45:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/tools/wireshark/commit/?id=ab74ebd958969072c8004fe5e197542f26bc5a58'/>
<id>ab74ebd958969072c8004fe5e197542f26bc5a58</id>
<content type='text'>
Since Diameter does heuristic checks before calling tcp_dissect_pdus() we
have to "manually" ask for more data if the tvb is too short for our
heuristics.

Bug: 11183
Change-Id: I14c36042306b532b53df80cc3971866b76094084
Reviewed-on: https://code.wireshark.org/review/8405
Reviewed-by: Evan Huus &lt;eapache@gmail.com&gt;
Petri-Dish: Jeff Morriss &lt;jeff.morriss.ws@gmail.com&gt;
Tested-by: Petri Dish Buildbot &lt;buildbot-no-reply@wireshark.org&gt;
Reviewed-by: Jeff Morriss &lt;jeff.morriss.ws@gmail.com&gt;
(cherry picked from commit d1f78230c9dcc631659f3e5f0008bf01115c2d69)
Conflicts:
	epan/dissectors/packet-diameter.c
Reviewed-on: https://code.wireshark.org/review/8428
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since Diameter does heuristic checks before calling tcp_dissect_pdus() we
have to "manually" ask for more data if the tvb is too short for our
heuristics.

Bug: 11183
Change-Id: I14c36042306b532b53df80cc3971866b76094084
Reviewed-on: https://code.wireshark.org/review/8405
Reviewed-by: Evan Huus &lt;eapache@gmail.com&gt;
Petri-Dish: Jeff Morriss &lt;jeff.morriss.ws@gmail.com&gt;
Tested-by: Petri Dish Buildbot &lt;buildbot-no-reply@wireshark.org&gt;
Reviewed-by: Jeff Morriss &lt;jeff.morriss.ws@gmail.com&gt;
(cherry picked from commit d1f78230c9dcc631659f3e5f0008bf01115c2d69)
Conflicts:
	epan/dissectors/packet-diameter.c
Reviewed-on: https://code.wireshark.org/review/8428
</pre>
</div>
</content>
</entry>
</feed>
