Re: Use of LibTomMath (LTM 0.35)

From: Tom St Denis (tomstdenis_at_gmail.com)
Date: 03/25/05


Date: 24 Mar 2005 16:43:58 -0800

pet...@gocougs.wsu.edu wrote:
> And working quite well. In fact, once I figured out the bug I had,
> I've been cruising along. I've now got LTM into our system and
working
> great. We've thrown all kinds of data at it, and it's working great!
>
> Just one, itsty-bitsy thing we found in tommath.h.
>
> We are definining our own heap functions using command line defines,
> i.e.:
>
> $(CFLAGS) += -DXMALLOC=my_malloc -DXREALLOC=my_realloc
> -DXCALLOC=my_calloc -DXFREE=my_free
>
> However, on line 115 of tommath.h is the definition:
>
> extern void *REALLOC(void *p, size_t n);
>
> Which of course causes warnings (and eventually linker errors) in
> bn_mp_grow.c and bn_mp_shrink.c.
>
> Of course, it was likely a typo, and should be:
>
> extern void *XREALLOC(void *p, size_t n);
>
> Which, when changed, compiles and links cleanly!

Oops, yeah that is a typo. I've fixed it locally. It will be in LTM
0.36 and LTC 1.01 [through the pre_gen].

> Thanks for the wonderful software, Tom!

Your welcome and thanks for the bug report. See teamwork ;-) hehehehe.

Tom



Relevant Pages

  • Re: Use of LibTomMath (LTM 0.35)
    ... Tom St Denis wrote: ... glad you found the bug and I'm glad LTM is working for ya. ... We are definining our own heap functions using command line defines, ...
    (sci.crypt)
  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... typo in liblocale.tex ... subprocess documentation ... Registry not updated by 2.4b1 installer ...
    (comp.lang.python)
  • Re: Blowfish Pseudocode
    ... Speed is not the goal of the LTM project. ... You are quite able to harm your reputation by yourself. ... fix the bug in due course. ... fixed precision public domain crypto library in C and Assembler FOR FREE ...
    (sci.crypt)
  • Weekly Python Patch/Bug Summary
    ... Patch / Bug Summary ... Typo in weakref error message ... http://python.org/sf/1519025 closed by nnorwitz ... http://python.org/sf/1295179 reopened by gbrandl ...
    (comp.lang.python)
  • Re: LibTomMath overflow bug
    ... and you quote Vaudenay like JSH quotes Mazur. ... Where did I say "people who use LTM are idiots"? ... That you didn't find my overflow bug shows that you ...
    (sci.crypt)