Re: [U-Boot] [PATCH] ppc: ppmc7xx: Fix possible out-of-bound access

2013-06-11 Thread Wolfgang Denk
Dear Marek Vasut, In message <1369018900-11198-1-git-send-email-ma...@denx.de> you wrote: > The flash_info_t->start[] field is limited in size by > CONFIG_SYS_MAX_FLASH_SECT > macro, which is set to 19 for this board in the board config file. If we > inspect > the board/ppmc7xx/flash.c closely,

[U-Boot] [PATCH] ppc: ppmc7xx: Fix possible out-of-bound access

2013-05-19 Thread Marek Vasut
The flash_info_t->start[] field is limited in size by CONFIG_SYS_MAX_FLASH_SECT macro, which is set to 19 for this board in the board config file. If we inspect the board/ppmc7xx/flash.c closely, especially the flash_get_size() function, we can notice the "switch ((long)flashtest)" at around line 8