updater: fix flash addressing BUG possibly reading wring data
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 26 Aug 2013 17:46:16 +0000 (19:46 +0200)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Mon, 26 Aug 2013 18:15:38 +0000 (18:15 +0000)
commitba9a5f3a437dc9273e4459ace7ceb45325b139c8
tree751f98b3b5511abce9ea1995533e02f842a6554a
parent428d4937b8f14786a3ad9b6324bfe94b140f4705
updater: fix flash addressing BUG possibly reading wring data

Fix Updater-bug, when linked to position in flash space
(FLASHADDRESS > 64K - SIZEOF_new_firmware - "a little more")

void* always is 16Bit - for real addresses take FLASADDRESS
into account in order to find upper address bit:
(http://www.mikrocontroller.net/topic/298174#3186932)

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
updater/updater.c