This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Check for illegal address range in io/flash


io/flash has a broken address range check for flash_erase(). There is no address
range check for flash_program_buf().

This patch adds address range check & returns error if the address is invalid.

Alternatively, address range checks could be left to higher level code and the
broken flash_erase() addreess range check can be removed.

Or alternatively, I'm about to get egg all over my face and hopefully someone
will take pity and tell me what's really happening here.  :-)

-- 
Øyvind Harboe
http://www.zylin.com - eCos ARM & FPGA  developer kit

Attachment: addressrangetest.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]