diff mbox series

[ovs-dev] oss-fuzz: Fix odp_flow_format() API in the fuzz tests.

Message ID f5cae71d159e9c255e24d4221d4c8f138a239cc2.1726148741.git.echaudro@redhat.com
State Accepted
Commit fa731c1129f10a21b57671ec64c01ef40225d347
Headers show
Series [ovs-dev] oss-fuzz: Fix odp_flow_format() API in the fuzz tests. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed

Commit Message

Eelco Chaudron Sept. 12, 2024, 1:45 p.m. UTC
When the commit below introduced an API change, the oss-fuzz component
was not updated accordingly, leading to failures in the upstream
oss-fuzz tests.

For more information on the failure, see:
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=71524

Fixes: 252ee0f18211 ("dpif: Fix flow put debug message match content.")
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
---
 tests/oss-fuzz/odp_target.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Ilya Maximets Sept. 12, 2024, 2:19 p.m. UTC | #1
On 9/12/24 15:45, Eelco Chaudron wrote:
> When the commit below introduced an API change, the oss-fuzz component
> was not updated accordingly, leading to failures in the upstream
> oss-fuzz tests.
> 
> For more information on the failure, see:
>   https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=71524
> 
> Fixes: 252ee0f18211 ("dpif: Fix flow put debug message match content.")
> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
> ---
>  tests/oss-fuzz/odp_target.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/oss-fuzz/odp_target.c b/tests/oss-fuzz/odp_target.c
> index ae61cdca3..0d615f8a2 100644
> --- a/tests/oss-fuzz/odp_target.c
> +++ b/tests/oss-fuzz/odp_target.c
> @@ -81,7 +81,8 @@ parse_keys(bool wc_keys, const char *in)
>      ds_init(&out);
>      if (wc_keys) {
>          odp_flow_format(odp_key.data, odp_key.size,
> -                        odp_mask.data, odp_mask.size, NULL, &out, false);
> +                        odp_mask.data, odp_mask.size, NULL, &out, false,
> +                        false);
>      } else {
>          odp_flow_key_format(odp_key.data, odp_key.size, &out);
>      }

I didn't test the actual build, but looks correct.

Acked-by: Ilya Maximets <i.maximets@ovn.org>
Eelco Chaudron Sept. 12, 2024, 3:57 p.m. UTC | #2
On 12 Sep 2024, at 16:19, Ilya Maximets wrote:

> On 9/12/24 15:45, Eelco Chaudron wrote:
>> When the commit below introduced an API change, the oss-fuzz component
>> was not updated accordingly, leading to failures in the upstream
>> oss-fuzz tests.
>>
>> For more information on the failure, see:
>>  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=71524
>>
>> Fixes: 252ee0f18211 ("dpif: Fix flow put debug message match content.")
>> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
>> ---
>>  tests/oss-fuzz/odp_target.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/tests/oss-fuzz/odp_target.c b/tests/oss-fuzz/odp_target.c
>> index ae61cdca3..0d615f8a2 100644
>> --- a/tests/oss-fuzz/odp_target.c
>> +++ b/tests/oss-fuzz/odp_target.c
>> @@ -81,7 +81,8 @@ parse_keys(bool wc_keys, const char *in)
>>      ds_init(&out);
>>      if (wc_keys) {
>>          odp_flow_format(odp_key.data, odp_key.size,
>> -                        odp_mask.data, odp_mask.size, NULL, &out, false);
>> +                        odp_mask.data, odp_mask.size, NULL, &out, false,
>> +                        false);
>>      } else {
>>          odp_flow_key_format(odp_key.data, odp_key.size, &out);
>>      }
>
> I didn't test the actual build, but looks correct.

I verified it offline with their tools. Thanks for the quick review, and the patch is applied to main.

> Acked-by: Ilya Maximets <i.maximets@ovn.org>
diff mbox series

Patch

diff --git a/tests/oss-fuzz/odp_target.c b/tests/oss-fuzz/odp_target.c
index ae61cdca3..0d615f8a2 100644
--- a/tests/oss-fuzz/odp_target.c
+++ b/tests/oss-fuzz/odp_target.c
@@ -81,7 +81,8 @@  parse_keys(bool wc_keys, const char *in)
     ds_init(&out);
     if (wc_keys) {
         odp_flow_format(odp_key.data, odp_key.size,
-                        odp_mask.data, odp_mask.size, NULL, &out, false);
+                        odp_mask.data, odp_mask.size, NULL, &out, false,
+                        false);
     } else {
         odp_flow_key_format(odp_key.data, odp_key.size, &out);
     }