switch-coreboot/src
Aaron Durbin f4c89796b6 UPSTREAM: lib/tpm2_marshaling: fix in correct buffer space semantics
marshal_blob() was setting an unsigned size (size_t) to a value
of -1 when an error is determined. This is wrong for the current
implementation of the code because the code assumes the buffer
space gets set to 0. Setting an unsigned value to -1 effectively
tells the library the buffer has unlimited amount of space.

BUG=b:35775104

Change-Id: I0c823447bb771094a8fc5fce0fd0bb62fdcfcd14
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 06f12f919f
Original-Change-Id: I677a1fd7528bef3ea7420d0a8d0a290e9b15cea3
Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18678
Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-by: Furquan Shaikh <furquan@google.com>
Original-Tested-by: build bot (Jenkins)
Reviewed-on: https://chromium-review.googlesource.com/452885
2017-03-10 10:54:44 -08:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: acpi: Update the ACPI ID for coreboot 2017-03-06 07:04:33 -08:00
commonlib UPSTREAM: commonlib/fsp.h: include sys/types.h for ssize_t 2017-02-27 14:07:44 -08:00
console UPSTREAM: console: Enable do_printk_va_list for VBOOT 2017-01-05 11:00:16 -08:00
cpu UPSTREAM: AGESA: Log heap initialisation 2017-03-10 10:54:35 -08:00
device UPSTREAM: device: Add scan_generic_bus support 2017-02-18 03:10:56 -08:00
drivers UPSTREAM: acpi: Add ACPI_ prefix to IRQ enum and struct names 2017-02-24 11:30:26 -08:00
ec UPSTREAM: google/chromeec: Add support for cros_ec_keyb device 2017-03-09 05:14:38 -08:00
include UPSTREAM: src/include: Remove space after & 2017-03-10 10:54:41 -08:00
lib UPSTREAM: lib/tpm2_marshaling: fix in correct buffer space semantics 2017-03-10 10:54:44 -08:00
mainboard UPSTREAM: google/poppy: Configure SRCCLKREQ4 as No Connect 2017-03-10 10:54:43 -08:00
northbridge UPSTREAM: AGESA: Fix loop condition for eventlog read 2017-03-10 10:54:36 -08:00
soc UPSTREAM: soc/intel/skylake: Add GPIO macros for IOxAPIC and SCI 2017-03-10 10:54:38 -08:00
southbridge UPSTREAM: AGESA: Move heap allocator declarations 2017-03-08 05:13:01 -08:00
superio UPSTREAM: sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-16 04:50:43 -08:00
vboot UPSTREAM: build system: mark sub-make invocations as parallelizable 2017-01-31 17:07:38 -08:00
vendorcode UPSTREAM: AGESA: Use printk for IDS output 2017-03-10 10:54:37 -08:00
Kconfig UPSTREAM: src/Kconfig: Move bootblock behavior to arch/x86 as TODO suggested 2017-02-17 04:09:21 -08:00