A patch for
https://sourceforge.net/tracker/index.php?func=detail&aid=3433730&group_id=42303&atid=432701has
been added to
https://sourceforge.net/projects/mspgcc/files/Patches/LTS/20110716/.  This
fixes an error when calculating strlen on an auto-storage char array that
happens be zero bytes offset from the stack pointer.

extern unsigned int strlen (const char *s);
void setval (char* str, int len);
void useval (const char* str, unsigned char len);

void tryit ()
{
  char tmp[17];
  setval (tmp, sizeof(tmp));
  useval (tmp, strlen(tmp));
}

The trunk version will be updated with a similar fix in a week or so.

Peter
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to