Skip to content

Commit 6571d32

Browse files
fuzzers: fix remaining pointer sign warnings
1 parent 4bcbd12 commit 6571d32

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fuzzers/fuzzer_loadfile_direct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
3535
return 0;
3636

3737
#ifdef MPV_PROTO
38-
if (!str_startswith(data, size - 1, MPV_STRINGIFY(MPV_PROTO) "://", sizeof(MPV_STRINGIFY(MPV_PROTO) "://") - 1))
38+
if (!str_startswith((const char *)data, size - 1, MPV_STRINGIFY(MPV_PROTO) "://", sizeof(MPV_STRINGIFY(MPV_PROTO) "://") - 1))
3939
return 0;
4040
#endif
4141

fuzzers/fuzzer_set_property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
2626
switch (MPV_FORMAT)
2727
{
2828
case MPV_FORMAT_STRING:
29-
value_len = strnlen(data, size);
29+
value_len = strnlen((const char *)data, size);
3030
if (!value_len || value_len == size)
3131
return 0;
3232
value_len += 1;

0 commit comments

Comments
 (0)