Re: [PATCH] mingw-multibyte: fix memory acces violation and path length limits.
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- Oct 3, 2013, 17:25 UTC
- Message-ID
- <CALWbr2zDi6XjMCRimUHu2=1qrA_=3ATq+50KBa1aNoBf4X_L9g@mail.gmail.com>
- In-Reply-To
- <524C9D8F.2090107@gmail.com>
I've not followed the thread so much but, in that entry.c::checkout_entry,() we do:
memcpy(path, state->base_dir, len); strcpy(path + len, ce->name);
which can of course result in memory violation if PATH is not long enough.
On Thu, Oct 3, 2013 at 12:26 AM, Wataru Noguchi <wnoguchi.0727@gmail.com> wrote:
Show 10 quoted lines
> Hi, > > At last, I foundfollowing Makefile optimization suppression works fine in my > case. > > CFLAGS = -g -O2 -fno-inline-small-functions -Wall > > Following optimization option cause crash, > > -finline-small-functions