Add new patch from upstream:

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));
}
This commit is contained in:
Lev A. Serebryakov 2011-11-06 17:39:22 +00:00
parent a2faad3b33
commit 6902b2ca99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285178
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= gcc
PORTVERSION= ${GCCVERSION}.${LTSVERSION}
PORTREVISION= 4
PORTREVISION= 5
PORTEPOCH= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEWARE} \
@ -42,7 +42,7 @@ CONFLICTS= msp430-gcc-3.*
GCCVERSION= 4.5.3
LTSVERSION= 20110716
PATCHVERSION= 20110706
BUGS_FIXED= 3370978 3390964 3394176 3396639 3409864 3431602
BUGS_FIXED= 3370978 3390964 3394176 3396639 3409864 3431602 3433730
LTS_PATCHES!= for bugid in ${BUGS_FIXED} ; do echo ${PKGNAMEPREFIX}${PORTNAME}-${GCCVERSION}-${PATCHVERSION}-sf$${bugid}.patch ; done
SRCDIR= ${WRKDIR}/${PORTNAME}-${GCCVERSION}

View File

@ -16,3 +16,5 @@ SHA256 (msp430-gcc-4.5.3-20110706-sf3409864.patch) = ea53a39b71018c674b7c1bcd3dd
SIZE (msp430-gcc-4.5.3-20110706-sf3409864.patch) = 2818
SHA256 (msp430-gcc-4.5.3-20110706-sf3431602.patch) = 2d880cb5f7038397768dab9bd61a0eab3ce06d4b7e46fb31256d552e45f08152
SIZE (msp430-gcc-4.5.3-20110706-sf3431602.patch) = 2280
SHA256 (msp430-gcc-4.5.3-20110706-sf3433730.patch) = 5c9b4a992f80b56bb7f7be56eb9a3e7663b97a05bf4487208da7c9f9b20aa197
SIZE (msp430-gcc-4.5.3-20110706-sf3433730.patch) = 2747