Patches item #2842235, was opened at 2009-08-21 23:08 Message generated for change (Comment added) made by joerg_wunsch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425409&aid=2842235&group_id=39505
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Peter LaDow (suudy) >Assigned to: Joerg Wunsch (joerg_wunsch) Summary: Fix segfault when programming with .fuses section Initial Comment: Avarice crashes when the .fuses section is present in the ELF when programming. The simple fix (for the segfault) is to have get_section_addr() return 0xffffff when an invalid section address is discovered. This prevents jtag_create_image() from overrunning the image->image buffer. ---------------------------------------------------------------------- >Comment By: Joerg Wunsch (joerg_wunsch) Date: 2011-08-30 15:51 Message: Thanks, applied! (Also had to apply it to src/jtagprog.cc, just in case.) ---------------------------------------------------------------------- Comment By: Peter LaDow (suudy) Date: 2009-08-22 00:46 Message: This bug exists, regardless of the section. If the .lock section is present (and the .fuses is not) this crash would occur. This attached patch fixes it in all cases. The root cause is the fact that sectmemtype is not initialized. After the if/else if chain it could be anything (depending upon the stack). In the crash I've seen it is 0, which ends up being MEM_FLASH. Instead the if/else if chain should be terminated with an else that returns an 0xffffff indicating the section is not to be used. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=425409&aid=2842235&group_id=39505 ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ avarice-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avarice-user
