wireshark/wsutil
Guy Harris d2b02eaf59 Don't shift signed values left.
That's not valid in C99, at least, if the value is negative or if the
shift count is the number of bits in the value - 1, and we might get
compile-time or run-time complaints about that.

Also, make bit masks unsigned; to quote a run-time error reported in

	https://www.wireshark.org/lists/wireshark-dev/201504/msg00084.html

"left shift of 1 by 31 places cannot be represented in type 'int'", so
use type "unsigned int" instead, by shifting 1U rather than 1 left.

Change-Id: I62220808058cb93f83329c1916b888a2067d524c
Reviewed-on: https://code.wireshark.org/review/8254
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-04-30 20:40:17 +00:00
..
CMakeLists.txt Check whether emmintrin.h can be used *without* -msse4.2. 2015-02-19 02:42:11 +00:00
Makefile.am Move popcount() to an optionally built part of wsutil for systems that 2014-12-23 00:22:23 +00:00
Makefile.common Move declarations of internal ws_mempbrk routines to a separate header. 2015-02-21 20:14:24 +00:00
Makefile.nmake Add '*.nativecodeanalysis.xml' to 'clean' targets 2015-01-02 01:45:16 +00:00
adler32.c Restore string.h as OS X misses it for strlen() 2014-12-28 23:47:16 +00:00
adler32.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
aes.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
aes.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
airpdcap_wep.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
base64.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
base64.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
bits_count_ones.h [pedantic] Replace usage of 'long' and 'long long' 2014-11-19 16:31:42 +00:00
bits_ctz.h Make boolean bitmask type 64-bit wide 2014-10-12 14:15:12 +00:00
bitswap.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
bitswap.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
buffer.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
buffer.h Rename buffer_ routines to ws_buffer_ to avoid name collisions. 2014-08-02 11:01:29 +00:00
cfutils.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
cfutils.h Don't declare CFString_to_C_string() if we don't have OS X frameworks. 2014-06-22 01:11:29 +00:00
clopts_common.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
clopts_common.h Move some more stuff into wsutil. 2014-06-29 23:03:24 +00:00
cmdarg_err.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
cmdarg_err.h Move some more stuff into wsutil. 2014-06-29 23:03:24 +00:00
copyright_info.c Welcome in 2015 2015-01-01 13:21:26 +00:00
copyright_info.h Move get_copyright_info() to wsutil. 2014-06-21 17:33:05 +00:00
crash_info.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
crash_info.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc6.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
crc6.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc7.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
crc7.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc8.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
crc8.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc10.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
crc10.h Clean up the CRC-10 code. 2014-08-08 18:09:02 +00:00
crc11.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
crc11.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc16-plain.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
crc16-plain.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
crc16.c Add "seed" capabilities to crc16_x25_ccitt (now crc16_x25_ccitt_seed) so we can remove CRC algorithm calculation in packet-assa_r3.c. 2015-03-03 05:12:10 +00:00
crc16.h Add "seed" capabilities to crc16_x25_ccitt (now crc16_x25_ccitt_seed) so we can remove CRC algorithm calculation in packet-assa_r3.c. 2015-03-03 05:12:10 +00:00
crc32.c The "MPEG-2" CRC-32 is also the ATM CRC-32. 2014-08-08 19:52:08 +00:00
crc32.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
des.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
des.h Continue to remove $Id$ from top of file 2014-03-31 18:46:57 +00:00
eax.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
eax.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
file_util.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
file_util.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
filesystem.c Make androiddump loadable on OS X. 2015-04-17 18:08:36 +00:00
filesystem.h Just have init_progfile_dir() take a void pointer. 2015-02-20 00:24:08 +00:00
floorl.c Don't bother with __builtin_floorl(). 2014-12-20 05:09:52 +00:00
floorl.h Remove trailing white space. 2014-12-20 04:11:43 +00:00
g711.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
g711.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
inet_aton.c Get rid of unnecessary includes of ctype.h. 2014-10-17 21:22:58 +00:00
inet_aton.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
inet_ntop.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
inet_pton.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
inet_v6defs.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
jsmn.c jsmn: bugfix in jsmn_parse() (found by clang). 2015-03-06 19:48:00 +00:00
jsmn.h Added JSON native file support. 2015-02-17 11:08:51 +00:00
md4.c Restore string.h to md4.c 2014-12-29 00:18:17 +00:00
md4.h Continue to remove $Id$ from top of file 2014-03-31 18:46:57 +00:00
md5.c Add back string.h 2014-12-29 00:09:07 +00:00
md5.h Continue to remove $Id$ from top of file 2014-03-31 18:49:26 +00:00
mpeg-audio.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
mpeg-audio.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
nstime.c Calculate *Peek tagged timestamps in fixed-point. 2015-04-21 01:28:15 +00:00
nstime.h Calculate *Peek tagged timestamps in fixed-point. 2015-04-21 01:28:15 +00:00
os_version_info.c win32: fix detection of Windows 10 Technical Preview 2015-01-28 09:19:48 +00:00
os_version_info.h Move get_os_major_version() to wsutil and rename it to get_windows_major_version(). 2014-06-21 21:33:11 +00:00
pint.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
plugins.c wsutil: Fix comment 2015-03-31 11:39:35 +00:00
plugins.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
popcount.c Move popcount() to an optionally built part of wsutil for systems that 2014-12-23 00:22:23 +00:00
popcount.h Move popcount() to an optionally built part of wsutil for systems that 2014-12-23 00:22:23 +00:00
privileges.c Removed duplicated #include lines 2014-12-28 00:02:39 +00:00
privileges.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
rc4.c Add string.h back to rc4.c 2014-12-29 00:12:45 +00:00
rc4.h Continue to remove $Id$ from top of file 2014-03-31 18:46:57 +00:00
report_err.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
report_err.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
sha1.c Add back string.h to sha1.c and sober128.c 2014-12-29 00:34:56 +00:00
sha1.h Continue to remove $Id$ from top of file 2014-03-31 15:59:51 +00:00
sign_ext.h Don't shift signed values left. 2015-04-30 20:40:17 +00:00
sober128.c Add back string.h to sha1.c and sober128.c 2014-12-29 00:34:56 +00:00
sober128.h Add casting and license info to fix buildbots 2014-06-19 23:55:47 +00:00
str_util.c Not all compilers support turning of "format=". 2015-02-18 20:13:31 +00:00
str_util.h Don't print non-printable characters in AX.25 addresses. 2014-09-04 12:46:06 +00:00
strnatcmp.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
strnatcmp.h Rename the strnatcmp.c routines and make them use the g_ascii_XXX() routines. 2014-10-29 17:54:51 +00:00
strptime.c Replace tabs by spaces when editor modelines has "expandtab" 2015-02-13 17:34:53 +00:00
strptime.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
tempfile.c Add a couple of more needed includes 2014-12-28 23:57:37 +00:00
tempfile.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
time_util.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
time_util.h Move mktime_utc() from tvbuff.c to wsutil/time_util.c 2014-04-25 04:13:02 +00:00
type_util.c Deleting unnecessary #includes from wsutil. 2014-12-28 23:33:54 +00:00
type_util.h Add some #includes to satisfy check-abi 2014-07-23 17:48:34 +00:00
u3.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
u3.h Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00
unicode-utils.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
unicode-utils.h Fix unknown command tag name [-Wdocumentation-unknown-command] 2014-12-22 15:24:28 +00:00
ws_cpuid.h "#else", not "#elif", for the last part of a chain of conditionals. 2014-12-31 21:26:10 +00:00
ws_diag_control.h Try to fix diagnostic suppression. 2015-02-14 22:55:00 +00:00
ws_mempbrk.c Remove tvb_ from the names of wsutil mempbrk routines. 2015-02-21 20:39:25 +00:00
ws_mempbrk.h Remove tvb_ from the names of wsutil mempbrk routines. 2015-02-21 20:39:25 +00:00
ws_mempbrk_int.h Remove tvb_ from the names of wsutil mempbrk routines. 2015-02-21 20:39:25 +00:00
ws_mempbrk_sse42.c Remove tvb_ from the names of wsutil mempbrk routines. 2015-02-21 20:39:25 +00:00
ws_version_info.c Replace "GIT" with "VCS" in make-version.pl and files it manipulates. 2015-01-25 21:51:13 +00:00
ws_version_info.h Do the full string in get_{compiled,runtime}_version_info(). 2014-12-31 06:29:11 +00:00
wsgcrypt.h Use the <wsutil/ws_diag_control.h> stuff to disable -Wdeprecated-declarations. 2014-08-27 21:57:30 +00:00
wsgetopt.c Add editor-modelines; adjust whitespace. 2014-10-14 16:45:09 +00:00
wsgetopt.h Eliminate include of <ctype.h>. 2014-10-17 07:02:37 +00:00
wsgetopt_int.h Fix another dozen or so files with bad FSF addresses as caught by licensecheck. 2013-04-16 00:00:09 +00:00