DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1] example/fips_validation: handle empty payload
@ 2022-06-28  7:58 Gowrishankar Muthukrishnan
  2022-06-28 13:11 ` [PATCH v2] " Gowrishankar Muthukrishnan
  0 siblings, 1 reply; 4+ messages in thread
From: Gowrishankar Muthukrishnan @ 2022-06-28  7:58 UTC (permalink / raw)
  To: dev
  Cc: Fan Zhang, Brian Dooley, Anoob Joseph, Archana Muniganti,
	Jerin Jacob, Gowrishankar Muthukrishnan, stable

Allocate atleast onebyte to handle empty payload in a test vector
when defined.

Fixes: 3d0fad56b74 ("examples/fips_validation: add crypto FIPS application")
Cc: stable@dpdk.org

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
 examples/fips_validation/fips_validation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c
index 94e31abf83..324abccb14 100644
--- a/examples/fips_validation/fips_validation.c
+++ b/examples/fips_validation/fips_validation.c
@@ -630,7 +630,7 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val)
 		val->val = NULL;
 	}
 
-	val->val = rte_zmalloc(NULL, len, 0);
+	val->val = rte_zmalloc(NULL, len + 1, 0);
 	if (!val->val)
 		return -ENOMEM;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2] example/fips_validation: handle empty payload
  2022-06-28  7:58 [PATCH v1] example/fips_validation: handle empty payload Gowrishankar Muthukrishnan
@ 2022-06-28 13:11 ` Gowrishankar Muthukrishnan
  2022-06-29  8:07   ` Zhang, Roy Fan
  0 siblings, 1 reply; 4+ messages in thread
From: Gowrishankar Muthukrishnan @ 2022-06-28 13:11 UTC (permalink / raw)
  To: dev
  Cc: Fan Zhang, Brian Dooley, Anoob Joseph, Archana Muniganti,
	Jerin Jacob, Gowrishankar Muthukrishnan, stable

Allocate at least onebyte to handle empty payload in a test vector
when defined.

Fixes: 3d0fad56b74 ("examples/fips_validation: add crypto FIPS application")
Cc: stable@dpdk.org

Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
---
v2:
 - commit message corrections.
---
 examples/fips_validation/fips_validation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c
index 94e31abf83..324abccb14 100644
--- a/examples/fips_validation/fips_validation.c
+++ b/examples/fips_validation/fips_validation.c
@@ -630,7 +630,7 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val)
 		val->val = NULL;
 	}
 
-	val->val = rte_zmalloc(NULL, len, 0);
+	val->val = rte_zmalloc(NULL, len + 1, 0);
 	if (!val->val)
 		return -ENOMEM;
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v2] example/fips_validation: handle empty payload
  2022-06-28 13:11 ` [PATCH v2] " Gowrishankar Muthukrishnan
@ 2022-06-29  8:07   ` Zhang, Roy Fan
  2022-06-30  4:24     ` Akhil Goyal
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Roy Fan @ 2022-06-29  8:07 UTC (permalink / raw)
  To: Gowrishankar Muthukrishnan, dev
  Cc: Dooley, Brian, Anoob Joseph, Archana Muniganti, Jerin Jacob, stable

> -----Original Message-----
> From: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> Sent: Tuesday, June 28, 2022 2:11 PM
> To: dev@dpdk.org
> Cc: Zhang, Roy Fan <roy.fan.zhang@intel.com>; Dooley, Brian
> <brian.dooley@intel.com>; Anoob Joseph <anoobj@marvell.com>; Archana
> Muniganti <marchana@marvell.com>; Jerin Jacob <jerinj@marvell.com>;
> Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>; stable@dpdk.org
> Subject: [PATCH v2] example/fips_validation: handle empty payload
> 
> Allocate at least onebyte to handle empty payload in a test vector
> when defined.
> 
> Fixes: 3d0fad56b74 ("examples/fips_validation: add crypto FIPS application")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> ---
> v2:
>  - commit message corrections.

Acked-by: Fan Zhang <roy.fan.zhang@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH v2] example/fips_validation: handle empty payload
  2022-06-29  8:07   ` Zhang, Roy Fan
@ 2022-06-30  4:24     ` Akhil Goyal
  0 siblings, 0 replies; 4+ messages in thread
From: Akhil Goyal @ 2022-06-30  4:24 UTC (permalink / raw)
  To: Zhang, Roy Fan, Gowrishankar Muthukrishnan, dev
  Cc: Dooley, Brian, Anoob Joseph, Archana Muniganti,
	Jerin Jacob Kollanukkaran, stable

> > Subject: [PATCH v2] example/fips_validation: handle empty payload
> >
> > Allocate at least onebyte to handle empty payload in a test vector
> > when defined.
> >
> > Fixes: 3d0fad56b74 ("examples/fips_validation: add crypto FIPS application")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
> > ---
> > v2:
> >  - commit message corrections.
> 
> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Applied to dpdk-next-crypto

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-30  4:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28  7:58 [PATCH v1] example/fips_validation: handle empty payload Gowrishankar Muthukrishnan
2022-06-28 13:11 ` [PATCH v2] " Gowrishankar Muthukrishnan
2022-06-29  8:07   ` Zhang, Roy Fan
2022-06-30  4:24     ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).