diff options
author | Kirill Radkin <kirill.radkin@syntacore.com> | 2025-06-03 16:48:23 +0300 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2025-06-20 15:17:24 +0100 |
commit | ba4bedeafa1cd9361b49a11dcd0e4eb0de6dadca (patch) | |
tree | 870cce99a603baa5a008142c3c3c362df2905c7e /libctf/ctf-open.c | |
parent | 959a00dc23de6c0a214488b8378a7e744e192213 (diff) | |
download | binutils-ba4bedeafa1cd9361b49a11dcd0e4eb0de6dadca.zip binutils-ba4bedeafa1cd9361b49a11dcd0e4eb0de6dadca.tar.gz binutils-ba4bedeafa1cd9361b49a11dcd0e4eb0de6dadca.tar.bz2 |
gdbserver: Update require_int function to parse offset for pread packet
Currently gdbserver uses the require_int() function to parse the
requested offset (in vFile::pread packet and the like). This function
allows integers up to 0x7fffffff (to fit in 32-bit int), however the
offset (for the pread system call) has an off_t type which can be
larger than 32-bit.
This patch allows require_int() function to parse offset up to the
maximum value implied by the off_t type.
Approved-By: Pedro Alves <pedro@palves.net>
Change-Id: I3691bcc1ab1838c0db7f8b82d297d276a5419c8c
Diffstat (limited to 'libctf/ctf-open.c')
0 files changed, 0 insertions, 0 deletions