> > On Fri, Dec 21, 2001 at 11:43:21AM +0800, Christopher Kings-Lynne

Bruce Momjian <bruce@momjian.us>

Commit: b490469cb99a7867420ee586b913108e4909418a
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-01-03T07:21:48Z
Releases: 7.2.1
> > On Fri, Dec 21, 2001 at 11:43:21AM +0800, Christopher Kings-Lynne
wrote:
> > > Just testing pgcrypto on freebsd/alpha.  I get some warnings:
> > They should be harmless, although I should fix them.
>
> The actual code is:
>
>     if ((dlen & 15) || (((unsigned) res) & 3))
>         return -1;

> Hard to imagine how (uint *) & 3 makes any sense, unless res isn't
> always a (uint8 *).  Is that true?

At some point it was casted to (uint32*) so I wanted to be sure its ok.
ATM its pointless.  Please apply the following patch.

--
marko

Files

PathChange+/−
contrib/pgcrypto/internal.c modified +5 −5