[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Memory corruption bug in libtcc
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Memory corruption bug in libtcc |
Date: |
Tue, 24 Jan 2012 15:36:27 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.1.0-1-amd64; KDE/4.6.5; x86_64; ; ) |
Le mardi 24 janvier 2012 13:10:23, grischka a écrit :
> Thomas Preud'homme wrote:
> > Le mardi 24 janvier 2012 01:11:08, Daniel Glöckner a écrit :
> >> On Mon, Jan 23, 2012 at 11:30:54AM +0100, Thomas Preud'homme wrote:
> >>> Shouldn't the same fix (Cf attached file) be applied for x86-64?
> >>
> >> Yes you are right, x86-64 needs fixing as well.
> >>
> >>> As I'm not sure about the answer I didn't dare to commit the change.
> >>
> >> It needs to be modified a little, as load gets called with registers
> >> not covered in reg_classes.
> >
> > I hope I understand what you meant well. Does this new patch fix the
> > problem?
>
> I think it can't hurt here to quote this one:
>
> "Debugging is twice as hard as writing the code in the first place.
> Therefore, if you write the code as cleverly as possible, you are,
> by definition, not smart enough to debug it." -- Brian Kernighan
Nice quote indeed :)
>
> Interpreted version: Before you even start to write some patch, make
> sure you have a test to prove its correctness.
Don't worry, that's what I do before committing. I just had little time for
that and sent this patch in the hope it could be useful. If nobody else do it
I'll test and commit a valid fix whenever I find time.
>
> --- grischka
Best regards,
Thomas Preud'homme
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] Memory corruption bug in libtcc, Andreas Eriksson, 2012/01/20
- Re: [Tinycc-devel] Memory corruption bug in libtcc, grischka, 2012/01/22
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Thomas Preud'homme, 2012/01/22
- Re: [Tinycc-devel] Memory corruption bug in libtcc, grischka, 2012/01/22
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Daniel Glöckner, 2012/01/22
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Thomas Preud'homme, 2012/01/23
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Daniel Glöckner, 2012/01/23
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Thomas Preud'homme, 2012/01/24
- Re: [Tinycc-devel] Memory corruption bug in libtcc, grischka, 2012/01/24
- Re: [Tinycc-devel] Memory corruption bug in libtcc, David Mertens, 2012/01/24
- Re: [Tinycc-devel] Memory corruption bug in libtcc,
Thomas Preud'homme <=
- Re: [Tinycc-devel] Memory corruption bug in libtcc, Thomas Preud'homme, 2012/01/30