[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#258365: marked as done (type missmatch CascadeB.c and CascadeBG.c of Xm-2.1)

Your message dated Wed, 04 Aug 2004 18:32:05 -0400
with message-id <E1BsUIn-0008S5-00@newraff.debian.org>
and subject line Bug#258365: fixed in lesstif1-1 1:0.93.94-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 9 Jul 2004 04:29:01 +0000
>From materer@chem.okstate.edu Thu Jul 08 21:29:01 2004
Return-path: <materer@chem.okstate.edu>
Received: from server.chem.okstate.edu [] (root)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Bin0P-0000JF-00; Thu, 08 Jul 2004 21:29:01 -0700
Received: from chem.okstate.edu (server [])
	by server.chem.okstate.edu (8.12.11/8.12.11/Debian-5) with SMTP id i694T0OL016041
	for <submit@bugs.debian.org>; Thu, 8 Jul 2004 23:29:00 -0500
Received: from
        (SquirrelMail authenticated user materer)
        by chem.okstate.edu with HTTP;
        Thu, 8 Jul 2004 23:29:00 -0500 (CDT)
Message-ID: <33971.>
Date: Thu, 8 Jul 2004 23:29:00 -0500 (CDT)
Subject: type missmatch CascadeB.c and CascadeBG.c of Xm-2.1
From: materer@chem.okstate.edu
To: submit@bugs.debian.org
User-Agent: SquirrelMail/1.4.1
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3
Importance: Normal
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.2 required=4.0 tests=BAYES_00,HAS_PACKAGE,

Package: lesstif2
Version: 3.6.1

problem: type missmatch in size_cascade

When building this package for an AMD64 system, I notice a pointer
corruption in problem in CascadeB.c and CascadeBG.c of Xm-2.1.
One the AMD64 system, a call to size_cascade(Widget w) corrupts w on
return and triggers a fault in the calling routine.

I believe the problem is in size_cascade is the call to XGetGeometry
with the following XtDisplay(w), CB_CascadePixmap(w),
(Window *)&dummy, &dummy,&dummy,&width, &height,
(unsigned *)&dummy, (unsigned *)&dummy).  In this call, dummy is an int.
However, Window is an unsigned long.

Making a new varible dummyw of type Window fixes the problem.

diff CascadeB.c CascadeB.bak
<     Window dummyw;
<                    (Window *)&dummyw, &dummy, &dummy,
>                    (Window *)&dummy, &dummy, &dummy,

diff CascadeBG.c CascadeBG.bak
<     Window dummyw;
<                        (Window *)&dummyw, &dummy, &dummy,
>                        (Window *)&dummy, &dummy, &dummy,

There may be a better way of fixing it.
I also reported this on the AMD64 debain list.

Received: (at 258365-close) by bugs.debian.org; 4 Aug 2004 22:38:06 +0000
>From katie@ftp-master.debian.org Wed Aug 04 15:38:06 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BsUOc-0002nM-00; Wed, 04 Aug 2004 15:38:06 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BsUIn-0008S5-00; Wed, 04 Aug 2004 18:32:05 -0400
From: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
To: 258365-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#258365: fixed in lesstif1-1 1:0.93.94-5
Message-Id: <E1BsUIn-0008S5-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 04 Aug 2004 18:32:05 -0400
Delivered-To: 258365-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-CrossAssassin-Score: 2

Source: lesstif1-1
Source-Version: 1:0.93.94-5

We believe that the bug you reported is fixed in the latest version of
lesstif1-1, which is due to be installed in the Debian FTP archive:

  to pool/main/l/lesstif1-1/lesstif-bin_0.93.94-5_i386.deb
  to pool/main/l/lesstif1-1/lesstif-dev_0.93.94-5_i386.deb
  to pool/main/l/lesstif1-1/lesstif-doc_0.93.94-5_all.deb
  to pool/main/l/lesstif1-1/lesstif1-1_0.93.94-5.diff.gz
  to pool/main/l/lesstif1-1/lesstif1-1_0.93.94-5.dsc
  to pool/main/l/lesstif1-1/lesstif1_0.93.94-5_i386.deb
  to pool/main/l/lesstif1-1/lesstif2-dev_0.93.94-5_i386.deb
  to pool/main/l/lesstif1-1/lesstif2_0.93.94-5_i386.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 258365@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Sam Hocevar (Debian packages) <sam+deb@zoy.org> (supplier of updated lesstif1-1 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Wed,  4 Aug 2004 22:55:59 +0200
Source: lesstif1-1
Binary: lesstif-bin lesstif2 lesstif-dev lesstif2-dev lesstif-doc lesstif1
Architecture: source i386 all
Version: 1:0.93.94-5
Distribution: unstable
Urgency: low
Maintainer: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
Changed-By: Sam Hocevar (Debian packages) <sam+deb@zoy.org>
 lesstif-bin - user binaries for LessTif
 lesstif-dev - development library and header files for LessTif 1.2
 lesstif-doc - documentation for LessTif
 lesstif1   - OSF/Motif 1.2 implementation released under LGPL
 lesstif2   - OSF/Motif 2.1 implementation released under LGPL
 lesstif2-dev - development library and header files for LessTif 2.1
Closes: 249708 258365
 lesstif1-1 (1:0.93.94-5) unstable; urgency=low
   * New maintainer (Closes: #249708).
   * debian/rules:
     + Use debian/compat instead of DH_COMPAT.
     + Re-enabled Xrender now that it is a shared library.
     + No longer use dh_undocumented.
   * debian/control:
     + Set policy to
     + Set section of -dev packages to libdevel.
     + Uncapitalised short descriptions and removed trailing periods.
     + Removed xlibs-dev from depends and build-depends.
   * lib/Xm*/CascadeB*.c:
     + Fixed wrong int/long size assumption thanks to Nick Materer
       (Closes: #258365).
   * include/Motif-*/XmI/*XpmI.h:
     + Do not cast pointers to unsigned int but to uintptr_t.
 f39a1482a91163052e435abbf80f8762 798 libs optional lesstif1-1_0.93.94-5.dsc
 945bae1e5c0f380ad904d165b3a11bca 20682 libs optional lesstif1-1_0.93.94-5.diff.gz
 8ba528a47e6ed94ac8508ce2fe8d5a69 342200 doc optional lesstif-doc_0.93.94-5_all.deb
 7616d520ab048ff91f35f3930694ac1b 689616 libs optional lesstif2_0.93.94-5_i386.deb
 fbdccd6d45b7c3048bad59382757eef6 615146 libs optional lesstif1_0.93.94-5_i386.deb
 988de023062bb40f32327b6341780adf 956744 libdevel optional lesstif2-dev_0.93.94-5_i386.deb
 bd9ce47356de8a9d546d4fff150302a9 828832 libdevel optional lesstif-dev_0.93.94-5_i386.deb
 5f46ece285d6a7b49ab4c28d74aad1f7 163708 x11 optional lesstif-bin_0.93.94-5_i386.deb

Version: GnuPG v1.2.5 (GNU/Linux)


Reply to: