]> granicus.if.org Git - esp-idf/commit
spi_flash: fix memory leak when spi_flash_mmap arguments are invalid
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 28 Feb 2017 07:11:54 +0000 (15:11 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 28 Feb 2017 07:11:54 +0000 (15:11 +0800)
commitf3687f7177f094288ab8e0fa0d9bbcde6ca419f4
tree0fedb65beff744c9d85c0a4a637cd0fa4a7e3c28
parent75115e1d83134e7647934e94ad2526adcc955986
spi_flash: fix memory leak when spi_flash_mmap arguments are invalid

Check src_addr and size first, then allocate new_entry.
components/spi_flash/flash_mmap.c