This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Integer overflow in operator new


2007/4/9, Ross Smith <r-smith@ihug.co.nz> wrote:
On Monday, 9 April 2007 13:09, J.C. Pizarro wrote:
>
> This code is bigger than Joe Buck's.
>
> Joe Buck's code: 10 instructions
> Ross Ridge's code: 16 instructions
> Ross Smith's code: 16 instructions

Well, yes, but it also doesn't have the bug Joe's code had. That was
sort of the whole point. If you don't care whether it gives the right
answer you might as well just leave the status quo.

--
Ross Smith ........ r-smith@ihug.co.nz ........ Auckland, New Zealand
           "Those who can make you believe absurdities can
           make you commit atrocities."        -- Voltaire


I'm sorry Ross Smith due to my bug.


In http://gcc.gnu.org/ml/gcc/2007-04/msg00232.html appears

I'm sorry, the previous 3rd source code .c is an error mine.

Joe Buck's code: 10 instructions
Ross Ridge's code: 16 instructions
Ross Smith's code: 23 instructions   # <- rectified.

J.C. Pizarro


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]