diff options
| author | Keith Packard <keithp@keithp.com> | 2013-04-22 20:08:35 -0600 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-05-07 21:30:26 -0700 | 
| commit | afad5ae893a48785f3b50ff4125dc78648343a2d (patch) | |
| tree | ae7e513dd3ca3506dc6c211082401085287c2e3c /src/stm-flash/ao_stm_flash.c | |
| parent | 9ae987073f90402821120dbe962fceb4fc9f5435 (diff) | |
altos/stm-flash: Check target flash address against AO_BOOT_APPLICATION_BASE
Allows that value to change
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-flash/ao_stm_flash.c')
| -rw-r--r-- | src/stm-flash/ao_stm_flash.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/stm-flash/ao_stm_flash.c b/src/stm-flash/ao_stm_flash.c index f0abe7fb..df06bb09 100644 --- a/src/stm-flash/ao_stm_flash.c +++ b/src/stm-flash/ao_stm_flash.c @@ -86,7 +86,7 @@ ao_block_write(void)  	} u;  	uint16_t	i; -	if (addr < 0x08002000 || 0x08200000 <= addr) { +	if (addr < (uint32_t) AO_BOOT_APPLICATION_BASE) {  		ao_put_string("Invalid address\n");  		return;  	} | 
