[Clam-devel] fix use of empty OutControlArray
zach-clam-devel at splitstring.com
Mon Apr 2 13:55:47 PDT 2007
On Monday 02 April 2007 08:48, Pau Arumi wrote:
> En/na Zach Welch ha escrit:
> > Hi all,
> > I found that the following trivial test case causes a bad assert in
> > OutControlArray. The subsequent "one-line" patch cures the problem.
> Yes it was a bug. Thanks for spotting it and give a solution. However,
> I've done the fix (already commited) in OutControlArray::Shrink
Please fix InControlArray in the same way. Also, you might add an int() cast
to eliminate the signed/unsigned comparison warning in the CLAM_ASSERT.
Really, these two classes need to share their code in a base class.
More information about the clam-devel