Message ID | CAFjpAKrohg=9sQYVprPmkoOQcSq1s3ehG2DXmf2Uo=f58pEMCA@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | Fix typo in gcc/asan.c comment | expand |
On 3/7/2021 4:10 PM, Ahamed Husni via Gcc-patches wrote: > Hi all, > This is my first contribution for an open source project. Please guide > me if anything is missing. > > diff --git a/gcc/gcc/asan.c b/gcc/gcc/asan.c > index 89ecd99b182..836f50bd44a 100755 > --- a/gcc/gcc/asan.c > +++ b/gcc/gcc/asan.c > @@ -105,7 +105,7 @@ along with GCC; see the file COPYING3. If not see > int > foo () > { > - char a[23] = {0}; > + char a[24] = {0}; > int b[2] = {0}; > > a[5] = 1; > > > Author: Husni Faiz <ahamedhusni73@gmail.com> > Date: Mon Mar 8 03:28:51 2021 +0530 > > Fix typo in gcc/asan.c comment > > The size of the variable 'a' should be 24 bytes as mentioned in line > no.126. There's another instance a bit later in the file that I fixed as well. Thanks, Jeff
diff --git a/gcc/gcc/asan.c b/gcc/gcc/asan.c index 89ecd99b182..836f50bd44a 100755 --- a/gcc/gcc/asan.c +++ b/gcc/gcc/asan.c @@ -105,7 +105,7 @@ along with GCC; see the file COPYING3. If not see int foo () { - char a[23] = {0}; + char a[24] = {0}; int b[2] = {0}; a[5] = 1;