Author: bdragon Date: Sat Oct 31 22:14:37 2020 New Revision: 367238 URL: https://svnweb.freebsd.org/changeset/base/367238
Log: 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 Modified: head/contrib/elftoolchain/readelf/readelf.c Modified: head/contrib/elftoolchain/readelf/readelf.c ============================================================================== --- head/contrib/elftoolchain/readelf/readelf.c Sat Oct 31 22:04:13 2020 (r367237) +++ head/contrib/elftoolchain/readelf/readelf.c Sat Oct 31 22:14:37 2020 (r367238) @@ -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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"