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:24 +0530
committerTom Rini <trini@konsulko.com>2024-09-20 17:37:30 -0600
commitaf45c84871e4c43a021bb12c71f70e8ded956068 (patch)
treea2979eeea1f264b5db932491aa91d09e4d7c8e66 /lib/mbedtls/x509_cert_parser.c
parent650883a568653f37ee4ff43beda56152b594a49c (diff)
tftp: 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 a tftp 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