summaryrefslogtreecommitdiff
path: root/lib/mbedtls/x509_cert_parser.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-09-16 20:50:25 +0530
committerTom Rini <trini@konsulko.com>2024-09-20 17:37:30 -0600
commit51ebd514ec78617482ff92e4577042e7a2d4b8f1 (patch)
tree3c080c81ea8986f94530f710fa743a5cf1dd4989 /lib/mbedtls/x509_cert_parser.c
parentaf45c84871e4c43a021bb12c71f70e8ded956068 (diff)
wget: rework the logic to validate the load address
Use the lmb_read_check() function to verify if it is safe to use a region of memory to load data from the wget command. The current logic checks the amount of free memory available, starting from the 'load address'. This call fails if the same region of memory has been used earlier. This used to work earlier as the LMB memory map had a local scope and was not persistent. Fix this issue by using the lmb_read_check() call instead which only returns an error in case the memory region has been marked for not allowing re-use. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Tested-by: Vaishnav Achath <vaishnav.a@ti.com>
Diffstat (limited to 'lib/mbedtls/x509_cert_parser.c')
0 files changed, 0 insertions, 0 deletions