]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: wget: prevent overwriting reserved memory
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Fri, 10 Nov 2023 04:25:34 +0000 (13:25 +0900)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 18 Nov 2023 08:08:08 +0000 (10:08 +0200)
commit04592adbdb997081acccdd7191a9bd661a791d91
tree505d756185d22ab87f6306cd39a4b1ada3987a5a
parentae7ec8b0be41b59ef323f7531c0fe6745e8fef45
net: wget: prevent overwriting reserved memory

This introduces the valid range check to store the received
blocks using lmb. The same logic is implemented in tftp.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
net/wget.c