mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
fuzzing: fix fuzz_stable_sort_r_unstable comparison
Credit to OSS-Fuzz. REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=69176 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri May 31 05:29:08 UTC 2024 on atb-devel-224
This commit is contained in:
parent
267f307689
commit
98b443d903
@ -71,8 +71,9 @@ static int cmp_int8(int8_t *_a, int8_t *_b, int8_t *ctx)
|
||||
|
||||
#define MAX_SIZE (1024 * 1024)
|
||||
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *input, size_t len)
|
||||
{
|
||||
const int8_t *buf = (const int8_t *)input;
|
||||
int8_t buf2[MAX_SIZE];
|
||||
int8_t aux[MAX_SIZE];
|
||||
int8_t context;
|
||||
|
Loading…
Reference in New Issue
Block a user