Skip to content

Commit

Permalink
add valgrind exception for false positive when memmove is an ifunc re…
Browse files Browse the repository at this point in the history
…solving to memcpy
  • Loading branch information
supervacuus committed Mar 8, 2024
1 parent 8e41d8a commit 02abaad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sentry_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ sentry__get_os_context(void)
#elif defined(SENTRY_PLATFORM_UNIX)

# include <fcntl.h>
# include <string.h>
# include <sys/utsname.h>
# include <unistd.h>

# define OS_RELEASE_MAX_LINE_SIZE 128
# define OS_RELEASE_MAX_KEY_SIZE 64
Expand Down
6 changes: 6 additions & 0 deletions tests/valgrind.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@
...
fun:sentry__procmaps_read_ids_from_elf
}
{
memmove is safe to overlap even if it is an ifunc that resolves to memcpy
Memcheck:Overlap
fun:__memcpy_chk
fun:memmove
}

0 comments on commit 02abaad

Please sign in to comment.