numam-dpdk/examples
Chaitanya Babu Talluri 75b3dddf95 examples/fips_validation: fix null dereferences
One issue caught by Coverity 343408
*deref_parm: Directly dereferencing parameter val->val.

In writeback_tdes_hex_str(), tmp_val is initialised to null.
tmp_val.val is updated only if keys are found.
If keys are not found,it doesn't fails but continues
to invoke writeback_hex_str(),where val->val is accessed
without null check.

The fix is to return the error,
if keys are not found in writeback_tdes_hex_str().

Coverity issue: 343408
Fixes: 527cbf3d5e ("examples/fips_validation: support TDES parsing")
Cc: stable@dpdk.org

Signed-off-by: Chaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2019-10-09 11:50:12 +02:00
..
bbdev_app examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
bond examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
bpf examples/bpf: fix build 2019-08-06 12:30:11 +02:00
cmdline examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
distributor examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ethtool net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
eventdev_pipeline examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
exception_path examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
fips_validation examples/fips_validation: fix null dereferences 2019-10-09 11:50:12 +02:00
flow_classify examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
flow_filtering remove extra blank lines at end of files 2019-08-05 15:19:32 +02:00
helloworld examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
ip_fragmentation examples/ip_frag: remove Tx fast free offload flag 2019-07-29 23:47:29 +02:00
ip_pipeline examples/ip_pipeline: fix TC oversubscription weight 2019-08-06 15:22:48 +02:00
ip_reassembly examples/ip_reassembly: enable IP checksum offload 2019-07-08 11:04:01 +02:00
ipsec-secgw examples/ipsec-secgw: fix over MTU packet crash 2019-10-09 11:50:12 +02:00
ipv4_multicast examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
kni examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-cat examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-crypto cryptodev: make xform key pointer constant 2019-07-19 14:15:21 +02:00
l2fwd-jobstats examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l2fwd-keepalive examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
l3fwd examples/l3fwd: fix unaligned memory access on x86 2019-07-30 22:05:00 +02:00
l3fwd-acl examples: fix use of ethdev internal device array 2019-07-18 22:32:45 +02:00
l3fwd-power remove extra blank lines at end of files 2019-08-05 15:19:32 +02:00
l3fwd-vf examples: fix use of ethdev internal device array 2019-07-18 22:32:45 +02:00
link_status_interrupt examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
load_balancer examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
multi_process examples/multi_process: fix FreeBSD build 2019-06-05 15:13:06 +02:00
netmap_compat replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
ntb examples/ntb: fix error handling 2019-08-06 10:40:54 +02:00
packet_ordering examples/packet_ordering: add stats per worker thread 2019-07-08 16:33:06 +02:00
performance-thread examples/performance-thread: init timer subsystem 2019-07-18 23:20:14 +02:00
ptpclient examples/ptpclient: fix delay request message 2019-07-30 00:11:42 +02:00
qos_meter examples/qos_meter: fix color type conversion 2019-08-11 00:07:31 +02:00
qos_sched examples/qos_sched: add more TC to red configuration 2019-07-30 10:19:08 +02:00
quota_watermark net: add rte prefix to ether functions 2019-05-24 13:34:45 +02:00
rxtx_callbacks examples/rxtx_callbacks: fix HW timestamp config 2019-07-30 11:21:49 +02:00
server_node_efd fix off-by-one errors in snprintf 2019-05-29 13:02:53 +02:00
service_cores examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
skeleton examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
tep_termination examples/tep_term: remove duplicate definitions 2019-07-18 23:10:19 +02:00
timer examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vdpa examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vhost examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vhost_crypto cryptodev: add feature flags to disable 2019-07-05 15:03:25 +02:00
vhost_scsi remove extra blank lines at end of files 2019-08-05 15:19:32 +02:00
vm_power_manager examples/power: fix policy handling for FIFO 2019-07-17 22:53:38 +02:00
vmdq examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
vmdq_dcb examples: fix pkg-config detection with older make 2019-07-03 23:10:23 +02:00
Makefile examples/ntb: add example for NTB 2019-07-05 12:50:19 +02:00
meson.build examples/ntb: add example for NTB 2019-07-05 12:50:19 +02:00