Go to file
Julien Cretin 6f8d4ded4a app/testpmd: fix minor signed overflow in a constant
The expression (192 << 24) has an undefined behavior since:
- the integer constant 192 has type int, and
- 192 x 2^24 is not representable as an int.

Suffixing 192 with U defines a behavior since:
- the integer constant 192U has type unsigned int, and
- the value of (192U << 24) is defined as
  (192 x 2^24) % (UINT_MAX + 1)

This minor bug was found using TrustInSoft Analyzer.

Signed-off-by: Julien Cretin <julien.cretin@trust-in-soft.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-05-14 11:22:05 +02:00
app app/testpmd: fix minor signed overflow in a constant 2014-05-14 11:22:05 +02:00
config kvargs: add a new library to parse key/value arguments 2014-02-26 11:01:13 +01:00
doc devargs: add in doc 2014-04-10 16:16:57 +02:00
examples examples/netmap_compat: import netmap compatibility example 2014-02-26 10:47:59 +01:00
lib mem: remove redundant check in optimize_object_size 2014-05-14 11:21:44 +02:00
mk version: 1.7.0-rc0 2014-05-13 10:11:17 +02:00
pkg version: 1.6.0r2 2014-05-01 22:58:21 +02:00
scripts update Intel copyright years to 2014 2014-02-25 21:29:14 +01:00
tools tools: rename pci_unbind script 2014-03-20 17:50:51 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile add FreeBSD support 2014-02-25 21:29:18 +01:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
Makefile add FreeBSD support 2014-02-25 21:29:18 +01:00