LibTomCrypt bug

From: Tom St Denis (tomstdenis@yahoo.com)
Date: 03/29/03


From: "Tom St Denis" <tomstdenis@yahoo.com>
Date: Sat, 29 Mar 2003 16:15:04 GMT

There is a minor bug in LibTomCrypt v0.82 and previous with regards to the
ECC multiplier. In the routine I make a copy of the input point so that the
destination of the multiplier can be the input point [e.g. X = kX].

When it allocs a point to store the copy if its NULL [e.g. no mem] my
routine will jump to the end and free up all the memory used so far. It
will then try to free a NULL pointer [and dereference it too].

I've fixed this bug and v0.83 will sport the fix. I don't know of a way to
maliciously cause this bug and as far as I know it would cause a GPF on most
systems if it occured.

On a positive note I've optimized the mulmod function

Tom



Relevant Pages

  • Re: IoRequestDpc results in IRQ_NOT_LESS_
    ... If i don't queue a dpc, the routine ends up as expected. ... I also tried to raise the IRQL to a higher level before queueing a dpc, ... Whithin the routine i only access data that is in nonpaged memory and even if a return statement at the very beginning of the DPC-Routine is set, it results in this bug check. ...
    (microsoft.public.development.device.drivers)
  • Re: Delphi 6 Compiler and Hyper Threading BUG?!
    ... Debugging An Application ... Make sure that what you are observing is, in fact, a bug. ... Assert statements and perhaps one or two ShowMessage calls. ... routine may assume that a particular parameter is not nil. ...
    (alt.comp.lang.borland-delphi)
  • Re: Softwarepatents in the EU
    ... > inject your code into a routine for which you don't have the source. ... 1st bug in MS win2k source code found after 20 minutes: ...
    (alt.lang.asm)
  • Re: IoRequestDpc results in IRQ_NOT_LESS_
    ... > If i don't queue a dpc, the routine ends up as expected. ... > results in this bug check. ...
    (microsoft.public.development.device.drivers)
  • IoRequestDpc results in IRQ_NOT_LESS_
    ... If i don't queue a dpc, the routine ends up as expected. ... I also tried to raise the IRQL to a higher level before queueing a dpc, ... Whithin the routine i only access data that is in nonpaged memory and even if a return statement at the very beginning of the DPC-Routine is set, it results in this bug check. ...
    (microsoft.public.development.device.drivers)