Re: CVS: commit uwog wv lfo.c

From: <sum1_lists_at_yahoo.com>
Date: Sun Oct 22 2006 - 04:51:29 CEST

cvs@abisource.com wrote:
> Update of /cvsroot/wv
> In directory abiword.snt.utwente.nl:/tmp/cvs-serv5590
>
> Modified Files:
> Tag: wv-1-0-0-STABLE
> lfo.c
> Log Message:
> Backport: IDEF vulnerabilities IDEF1613 and IDEF1614 (dom)
>
>
>
> Index: lfo.c
> ===================================================================
> RCS file: /cvsroot/wv/lfo.c,v
> retrieving revision 1.19
> retrieving revision 1.19.6.1
> diff -u -d -r1.19 -r1.19.6.1
> --- lfo.c 7 Sep 2002 05:58:41 -0000 1.19
> +++ lfo.c 20 Oct 2006 08:45:01 -0000 1.19.6.1
> @@ -12,6 +12,16 @@
> followed by its corresponding LVL structure (if LFOLVL.fFormatting
is set).
> */
>
> +static int
> +multiplication_will_overflow(U32 a, U32 b)
> +{
> + if((a > 0) && (b > 0) && (G_MAXUINT / a) >= b) {

I believe the use of G_MAXUINT will break the win32 2.4.x build (I'm
not
sure which version of wv is used for the mac build).

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Received on Sun Oct 22 04:52:41 2006

This archive was generated by hypermail 2.1.8 : Sun Oct 22 2006 - 04:52:42 CEST