coreboot/src/lib
Ryan Salsamendi 878d839596 UPSTREAM: cbmem_console: Fix undefined behavior
Fixes report found by undefined behavior sanitizer. Left shifting an int
where the right operand is >= width of type is undefined. Add
ul suffix since it's safe for unsigned types.

BUG=none
BRANCH=none
TEST=none

Change-Id: I76262ee24dc89fac3d2b027ded72f1f32afaa580
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: fce582fa1c
Original-Change-Id: I4b2365428e421085285006bc1ea8aea75890ff65
Original-Signed-off-by: Ryan Salsamendi <rsalsamendi@hotmail.com>
Original-Reviewed-on: https://review.coreboot.org/20144
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Reviewed-by: Martin Roth <martinroth@google.com>
Original-Reviewed-by: Youness Alaoui <snifikino@gmail.com>
Reviewed-on: https://chromium-review.googlesource.com/539203
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
2017-06-18 11:51:26 -07:00
..
gnat UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
b64_decode.c UPSTREAM: src/lib: Add "int" following "unsigned" 2017-03-10 10:54:42 -08:00
boot_device.c UPSTREAM: lib/boot_device: add RW boot device construct 2016-08-19 14:20:23 -07:00
bootblock.c UPSTREAM: src/lib: Move asmlinkage before type 2017-03-14 07:25:28 -07:00
bootmem.c lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.c UPSTREAM: bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 22:56:28 -07:00
cbfs.c UPSTREAM: src/lib: Fix space between type, * and variable name 2017-03-10 10:54:42 -08:00
cbmem_common.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
cbmem_console.c UPSTREAM: cbmem_console: Fix undefined behavior 2017-06-18 11:51:26 -07:00
cbmem_stage_cache.c
compute_ip_checksum.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
coreboot_table.c UPSTREAM: lib/coreboot_tables: Remove weak fill_lb_framebuffer() 2017-06-18 04:25:17 -07:00
debug.c UPSTREAM: src/lib: Add "int" following "unsigned" 2017-03-10 10:54:42 -08:00
delay.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
edid.c UPSTREAM: lib/edid: Split out fill_lb_framebuffer() 2017-06-18 04:25:15 -07:00
edid_fill_fb.c UPSTREAM: lib/edid: Split out fill_lb_framebuffer() 2017-06-18 04:25:15 -07:00
ext_stage_cache.c UPSTREAM: soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-11 14:31:54 -07:00
fallback_boot.c UPSTREAM: Kconfig: Add choice of framebuffer mode 2017-06-18 04:25:17 -07:00
fmap.c UPSTREAM: lib/fmap: provide RW region device support 2016-08-22 00:11:45 -07:00
gcc.c UPSTREAM: src/lib: Move asmlinkage before type 2017-03-14 07:25:28 -07:00
gcov-glue.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
gcov-io.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
gcov-io.h UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
gcov-iov.h
generic_dump_spd.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
generic_sdram.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
gpio.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
halt.c UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
hardwaremain.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
hexdump.c
hexstrtobin.c UPSTREAM: hexstrtobin: Add a library function to decode ASCII hex into binary 2016-05-26 03:21:43 -07:00
hw-time-timer.adb UPSTREAM: Hook up libhwbase in ramstage 2016-12-21 03:12:47 -08:00
imd.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
imd_cbmem.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
jpeg.c UPSTREAM: src/lib/jpeg: Fix missing closing brace 2017-03-30 05:30:09 -07:00
jpeg.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
Kconfig UPSTREAM: lib/edid: Split out fill_lb_framebuffer() 2017-06-18 04:25:15 -07:00
libgcc.c
libgcov.c UPSTREAM: src/lib: Move assignment out of if condition 2017-03-16 11:25:33 -07:00
lzma.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
lzmadecode.c UPSTREAM: src/lib: Remove semicolon from end of macro 2017-03-14 07:25:37 -07:00
lzmadecode.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
Makefile.inc UPSTREAM: Consolidate reset API, add generic reset_prepare mechanism 2017-06-18 11:51:24 -07:00
malloc.c
memchr.c
memcmp.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
memcpy.c
memmove.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
memrange.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
memset.c
nhlt.c UPSTREAM: lib/nhlt: add support for setting the oem_revision 2016-12-02 14:23:05 -08:00
primitive_memtest.c UPSTREAM: src/lib: Add space before ( 2017-03-10 10:54:43 -08:00
prog_loaders.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
prog_ops.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
program.ld UPSTREAM: lib/program.ld: add .sdata sections 2016-11-03 14:44:10 -07:00
ramtest.c UPSTREAM: src/lib: Remove unnecessary code 2017-03-14 07:25:37 -07:00
reg_script.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
region_file.c UPSTREAM: lib: add region file support 2016-12-09 03:29:43 -08:00
reset.c UPSTREAM: Consolidate reset API, add generic reset_prepare mechanism 2017-06-18 11:51:24 -07:00
rmodule.c UPSTREAM: src/lib: Use tabs instead of spaces 2017-03-13 13:07:57 -07:00
rmodule.ld
romstage_handoff.c UPSTREAM: lib: put romstage_handoff implementation in own compilation unit 2016-12-02 14:23:00 -08:00
romstage_stack.c UPSTREAM: intel post-car: Increase stacktop alignment 2016-11-21 11:53:20 -08:00
rtc.c UPSTREAM: lib: Add real-time-clock functions 2016-07-07 01:08:44 -07:00
selfboot.c UPSTREAM: src: change coreboot to lowercase 2017-06-12 08:47:50 -07:00
spd_bin.c UPSTREAM: lib/spd_bin: Print out correct SMBus SPD address in dump_spd_info 2017-06-12 14:16:12 -07:00
stack.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
thread.c UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
timer.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
timer_queue.c UPSTREAM: src/lib: Fix spacing 2017-03-14 07:25:24 -07:00
timestamp.c UPSTREAM: src/lib: Fix space between type, * and variable name 2017-03-10 10:54:42 -08:00
tlcl.c UPSTREAM: src/lib: Clean up general issues found by checkpatch.pl 2017-03-16 11:25:34 -07:00
tlcl_internal.h UPSTREAM: src/lib: Fix brace positions 2017-03-14 07:25:28 -07:00
tlcl_structures.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
tpm2_marshaling.c UPSTREAM: drivers/i2c/tpm: use iobuf library for marshaling commands 2017-04-26 09:20:53 -07:00
tpm2_marshaling.h UPSTREAM: drivers/i2c/tpm: use iobuf library for marshaling commands 2017-04-26 09:20:53 -07:00
tpm2_tlcl.c UPSTREAM: drivers/i2c/tpm: use iobuf library for marshaling commands 2017-04-26 09:20:53 -07:00
tpm2_tlcl_structures.h UPSTREAM: cr50: add unmarshaling of vendor commands and process 'enable_update' 2017-03-25 13:37:59 -07:00
tpm_error_messages.h UPSTREAM: src/lib: Wrap lines at 80 columns 2017-03-14 07:25:27 -07:00
trace.c UPSTREAM: src/lib: Fix checkpatch warnings 2016-09-08 17:57:25 -07:00
version.c UPSTREAM: lib/version: Correct whitespace alignment 2016-07-15 08:39:33 -07:00
wrdd.c lib: Implement framework for retrieving WiFi regulatory domain 2016-03-08 18:41:33 +01:00