mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 01:01:06 +00:00
Fix 32-bit build after r367209
Fix build on systems with a 32-bit size_t. Since it's being passed as a pointer, a 64-bit write to it will overflow. MFC with: r367209
This commit is contained in:
parent
3bdb684633
commit
d4fba56212
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367238
|
@ -6909,8 +6909,8 @@ get_symbol_value(struct readelf *re, int symtab, int i)
|
|||
* Returns true if sucessful, false otherwise.
|
||||
*/
|
||||
static bool decompress_section(struct section *s,
|
||||
unsigned char *compressed_data_buffer, uint64_t compressed_size,
|
||||
unsigned char **ret_buf, uint64_t *ret_sz)
|
||||
unsigned char *compressed_data_buffer, size_t compressed_size,
|
||||
unsigned char **ret_buf, size_t *ret_sz)
|
||||
{
|
||||
GElf_Shdr sh;
|
||||
|
||||
|
|
Loading…
Reference in a new issue