logo       

Re: help needed on messageDedup routine: msg#00003

security.virus.clamav.devel

Subject: Re: help needed on messageDedup routine

Brian Bebeau wrote:

Could someone please explain how the messageDedup() routine
in libclamav/message.c is supposed to work? It doesn't seem
to actually be de-allocating anything.

It's spinning in the second for() loop. Since t2 is
defined as t1->t_next, how will the strcmp() of d1 and d2
ever be 0?

If the two lines' contents are the same thus:

hello
world
world


--
Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Typesetter.
NJH Music, Barnsley, UK. ICQ#20252325
njh@xxxxxxxxxxxxx http://www.bandsman.co.uk
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise