Re: [PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-29 Thread Christian MAUDERER
Hello Niteesh, Am 29.01.21 um 09:58 schrieb Niteesh G. S.: Hello Christian, On Fri, Jan 29, 2021 at 1:47 PM Christian MAUDERER > wrote: Hello Niteesh, Am 29.01.21 um 07:33 schrieb Niteesh G. S.: > Hello, > > https://lists.

Re: [PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-29 Thread Niteesh G. S.
Hello Christian, On Fri, Jan 29, 2021 at 1:47 PM Christian MAUDERER < christian.maude...@embedded-brains.de> wrote: > Hello Niteesh, > > Am 29.01.21 um 07:33 schrieb Niteesh G. S.: > > Hello, > > > > https://lists.rtems.org/pipermail/devel/2021-January/064115.html > >

Re: [PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-29 Thread Christian MAUDERER
Hello Niteesh, Am 29.01.21 um 07:33 schrieb Niteesh G. S.: Hello, https://lists.rtems.org/pipermail/devel/2021-January/064115.html I have fixed defects reported in the above thread except CID 1472595, 1472597 (ARRAY_VS_SINGLET

Re: [PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-28 Thread Niteesh G. S.
Hello, https://lists.rtems.org/pipermail/devel/2021-January/064115.html I have fixed defects reported in the above thread except CID 1472595, 1472597 (ARRAY_VS_SINGLETON) Along with the buffer we also take the size of the buffer this makes sure that we don't read more than the buffer capacity. But

[PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-28 Thread G S Niteesh Babu
Fixed use after free and null pointer dereference defects FIXES: 1) CID 1472601 (NULL_RETURNS) 2) CID 1472600 (USE_AFTER_FREE) 3) CID 1472599 (USE_AFTER_FREE) 4) CID 1472598 (USE_AFTER_FREE) 5) CID 1472596 (USE_AFTER_FREE) --- bsps/shared/ofw/ofw.c | 10 +- 1 file changed, 5 insertions(+)