grub/grub-core
Matthew Garrett ec0051a569 Don't allocate a new address buffer if we receive multiple responses
The current logic in the DNS resolution code allocates an address buffer
based on the number of addresses in the response packet. If we receive
multiple response packets in response to a single query packet, this means
that we will reallocate a new buffer large enough for only the addresses in
that specific packet, discarding any previous results in the process. Worse,
we still keep track of the *total* number of addresses resolved in response
to this query, not merely the number in the packet being currently processed.
Use realloc() rather than malloc() to avoid overwriting the existing data,
and allocate a buffer large enough for the total set of addresses rather
than merely the number in this specific response.
2016-03-24 13:46:42 -07:00
..
boot Fix boot when there's no TPM 2016-03-23 17:02:52 -07:00
bus ohci: fix memory leak 2015-06-20 23:38:19 +03:00
commands Allow passing of trusted keys via variables 2016-01-07 15:33:36 -08:00
disk ofdisk: add sas disks to the device list 2015-11-12 09:23:02 -02:00
efiemu Add smbios command 2016-01-06 12:46:22 -08:00
font Document intentional fallthroughs. 2015-01-27 17:17:58 +01:00
fs cbfs: Fix corner case and compilation with recdent gcc 2015-11-09 03:24:04 +01:00
gdb With Apple assembly in .macro environvemnt you have to use $$ instead 2013-11-24 07:08:18 +01:00
gettext * grub-core/gettext/gettext.c (main_context), (secondary_context): 2013-11-07 01:01:47 +01:00
gfxmenu gfxterm: fix calculation of terminal-top and terminal-height 2015-11-13 21:54:19 +03:00
gnulib update gnulib/argp-help.c to fix garbage in grub-mknetdir --help output 2015-03-05 20:19:47 +03:00
hello * grub-core/commands/gptsync.c: Fix typographic quoting. 2012-03-03 13:05:08 +01:00
hook * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic 2011-11-11 21:03:49 +01:00
io gzio: Optimize by removing division. 2015-02-26 22:10:09 +01:00
kern Rework TPM measurements 2016-03-23 17:03:43 -07:00
lib Rework TPM measurements 2016-03-23 17:03:43 -07:00
loader Rework TPM measurements 2016-03-23 17:03:43 -07:00
mmap Translate UEFI persistent memory type 2015-12-15 10:25:34 +03:00
net Don't allocate a new address buffer if we receive multiple responses 2016-03-24 13:46:42 -07:00
normal Erase backspaced character in grub_username_get 2015-12-16 19:20:10 +03:00
osdep unix: do not close stdin in grub_passwd_get 2015-11-18 22:23:58 +03:00
partmap disk/ldm, partmap/msdos.c: fix spelling error 2015-08-22 21:22:41 +02:00
parttool * grub-core/net/http.c: Add TRANSLATORS comments. 2012-03-05 16:42:26 +01:00
script Rework TPM measurements 2016-03-23 17:03:43 -07:00
term efi: fix warnings with recent GCC 2015-10-27 23:30:54 +03:00
tests Remove libgcc dependency. 2015-03-03 20:50:37 +01:00
video jpeg: Optimise by replacing division with shifts. 2015-02-26 21:27:32 +01:00
gdb_grub.in * grub-core/gdb_grub.in: Fix overflow and wrong field. 2013-10-14 03:40:20 +02:00
genemuinit.sh use MODULE_FILES for genemuinit* instead of MOD_FILES 2014-01-18 23:15:40 +04:00
genemuinitheader.sh use MODULE_FILES for genemuinit* instead of MOD_FILES 2014-01-18 23:15:40 +04:00
genmod.sh.in * grub-core/genmod.sh.in: Strip before converting to ELF as strip 2013-12-16 13:18:48 +01:00
genmoddep.awk genmoddep.awk: Add a test that we have no circular dependencies 2015-11-08 20:00:27 +01:00
gensyminfo.sh.in * grub-core/gensyminfo.sh.in: Handle the case of portable output 2013-11-11 23:05:53 +01:00
gensymlist.sh Make 'make check' work on emu. 2013-04-27 02:00:16 +02:00
gentrigtables.c * grub-core/gentrigtables.c: Make tables const. 2013-03-01 11:15:09 +01:00
gmodule.pl.in * grub-core/gmodule.pl.in: Accept newer binutils which output 2014-09-21 18:23:23 +02:00
gnulib-fix-null-deref.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-fix-width.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-no-abort.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
gnulib-no-gets.diff Import new gnulib. 2013-04-11 21:12:46 +02:00
Makefile.am Core TPM support 2016-01-05 14:35:05 -08:00
Makefile.core.def Add smbios command 2016-01-06 12:46:22 -08:00
modinfo.sh.in modinfo.sh.in: Add missing config variables. 2015-03-27 12:18:25 +01:00