UPSTREAM: lzo: add a function to check the validity of the headerChange-Id: I8835606db327dc958e90ce717ae4fe85439b46e3Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>Reviewed-by: Tom Rini <tri
UPSTREAM: lzo: add a function to check the validity of the headerChange-Id: I8835606db327dc958e90ce717ae4fe85439b46e3Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>Reviewed-by: Tom Rini <trini@konsulko.com>Reviewed-by: Simon Glass <sjg@chromium.org>Signed-off-by: Kever Yang <kever.yang@rock-chips.com>(cherry picked from commit d753f942ec12e6b5b2db73698aa6c55588053d3a)
show more ...
lib/lzo: bugfix when input data is not compressedWhen the input data is not compressed at all,lzo1x_decompress_safe will fail, so call memcpy()instead.Signed-off-by: Joris Lijssens <joris.lijss
lib/lzo: bugfix when input data is not compressedWhen the input data is not compressed at all,lzo1x_decompress_safe will fail, so call memcpy()instead.Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com>
lzo: Update dst_len even on errorThis allows the caller to easily detect how much of the destination bufferhas been used.Signed-off-by: Simon Glass <sjg@chromium.org>
lib: descend into sub directories only when it is necessarySigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
lib: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
lzo: correctly bounds-check output bufferThis checks the size of the output buffer and fails if it was going tooverflow the buffer during lzo decompression.Signed-off-by: Kees Cook <keescook@chr
lzo: correctly bounds-check output bufferThis checks the size of the output buffer and fails if it was going tooverflow the buffer during lzo decompression.Signed-off-by: Kees Cook <keescook@chromium.org>Acked-by: Simon Glass <sjg@chromium.org>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
GCC4.6: Squash warning in lzo1x_decompress.clzo1x_decompress.c: In function ‘parse_header’:lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used[-Wunused-but-set-variable]Signed-o
GCC4.6: Squash warning in lzo1x_decompress.clzo1x_decompress.c: In function ‘parse_header’:lzo1x_decompress.c:35:5: warning: variable ‘level’ set but not used[-Wunused-but-set-variable]Signed-off-by: Marek Vasut <marek.vasut@gmail.com>Acked-by: Mike Frysinger <vapier@gentoo.org>
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. A
Switch from archive libraries to partial linkingBefore this commit, weak symbols were not overridden by non-weak symbolsfound in archive libraries when linking with recent versions ofbinutils. As stated in the System V ABI, "the link editor does notextract archive members to resolve undefined weak symbols".This commit changes all Makefiles to use partial linking (ld -r) insteadof creating library archives, which forces all symbols to participate inlinking, allowing non-weak symbols to override weak symbols as intended.This approach is also used by Linux, from which the gmake functioncmd_link_o_target (defined in config.mk and used in all Makefiles) isinspired.The name of each former library archive is preserved except forextensions which change from ".a" to ".o". This commit updatesreferences accordingly where needed, in particular in some linkerscripts.This commit reveals board configurations that exclude some features butinclude source files that depend these disabled features in the build,resulting in undefined symbols. Known such cases include:- disabling CMD_NET but not CMD_NFS;- enabling CONFIG_OF_LIBFDT but not CONFIG_QE.Signed-off-by: Sebastien Carlier <sebastien.carlier@gmail.com>
Rename lib_generic/ to lib/Now that the other architecture-specific lib directories have beenmoved out of the top-level directory there's not much reason to have the'_generic' suffix on the commo
Rename lib_generic/ to lib/Now that the other architecture-specific lib directories have beenmoved out of the top-level directory there's not much reason to have the'_generic' suffix on the common lib directory.Signed-off-by: Peter Tyser <ptyser@xes-inc.com>