aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace/internal.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-01-18 17:13:59 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-01-18 17:13:59 +0000
commit8b248c17bd9999eb3adb585b0789595bada43e8c (patch)
tree763e0966d741405f3d063a4c83449045813900b5 /libbacktrace/internal.h
parent89ce81fbe13dc554d489d9f00f92f85164b185d6 (diff)
downloadgcc-8b248c17bd9999eb3adb585b0789595bada43e8c.zip
gcc-8b248c17bd9999eb3adb585b0789595bada43e8c.tar.gz
gcc-8b248c17bd9999eb3adb585b0789595bada43e8c.tar.bz2
re PR libbacktrace/88890 (libbacktrace on 32-bit system with _FILE_OFFSET_BITS == 64)
PR libbacktrace/88890 * mmapio.c (backtrace_get_view): Change size parameter to uint64_t. Check that value fits in size_t. * read.c (backtrace_get_view): Likewise. * internal.h (backtrace_get_view): Update declaration. * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view. From-SVN: r268082
Diffstat (limited to 'libbacktrace/internal.h')
-rw-r--r--libbacktrace/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbacktrace/internal.h b/libbacktrace/internal.h
index e838977..065b953 100644
--- a/libbacktrace/internal.h
+++ b/libbacktrace/internal.h
@@ -179,7 +179,7 @@ struct backtrace_view
/* Create a view of SIZE bytes from DESCRIPTOR at OFFSET. Store the
result in *VIEW. Returns 1 on success, 0 on error. */
extern int backtrace_get_view (struct backtrace_state *state, int descriptor,
- off_t offset, size_t size,
+ off_t offset, uint64_t size,
backtrace_error_callback error_callback,
void *data, struct backtrace_view *view);