Skip to content

Commit

Permalink
[sanitizer] Fix internal_mmap in internal symbolizer
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Apr 12, 2022
1 parent 07db69e commit 6ddaf0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ unsigned long internal_stat(const char *path, void *buf);
unsigned long internal_lstat(const char *path, void *buf);
unsigned long internal_fstat(int fd, void *buf);
size_t internal_strlen(const char *s);
unsigned long internal_mmap(void *addr, unsigned long length, int prot,
int flags, int fd, unsigned long long offset);
unsigned long internal_mmap(void *addr, uintptr_t length, int prot, int flags,
int fd, unsigned long long offset);
void *internal_memcpy(void *dest, const void *src, unsigned long n);
// Used to propagate errno.
bool internal_iserror(uintptr_t retval, int *rverrno = 0);
Expand Down Expand Up @@ -155,8 +155,8 @@ size_t strlen(const char *s) { return __sanitizer::internal_strlen(s); }

void *mmap(void *addr, size_t length, int prot, int flags, int fd,
off_t offset) {
unsigned long res = __sanitizer::internal_mmap(
addr, (unsigned long)length, prot, flags, fd, (unsigned long long)offset);
unsigned long res =
__sanitizer::internal_mmap(addr, length, prot, flags, fd, offset);
RETURN_OR_SET_ERRNO(void *, res);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_GLOBAL_OFFSET_TABLE_ U
_ZN11__sanitizer13internal_mmapEPvjiiiy U
_ZN11__sanitizer13internal_mmapEPvmiiiy U
_ZN11__sanitizer13internal_openEPKcij U
_ZN11__sanitizer13internal_statEPKcPv U
Expand Down

0 comments on commit 6ddaf0e

Please sign in to comment.