Bug 154713

Summary: LP64 problem in nspluginviewer
Product: [Applications] konqueror Reporter: Mark Davies <mark>
Component: nspluginsAssignee: George Staikos <staikos>
Status: RESOLVED FIXED    
Severity: crash CC: jj4693jj
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: 4.0RC2 patch for 64bit issue in nspluginviewer
3.5 branch patch for 64bit issue in nspluginviewer

Description Mark Davies 2007-12-27 21:45:45 UTC
Version:            (using KDE KDE 3.97.0)
Installed from:    NetBSD pkgsrc
Compiler:          gcc4 
OS:                NetBSD

There is an LP64 bug in nspluginviewer on amd64 (and no
doubt all other LP64 platforms) which causes a SEGV on startup.

The problem is caused by truncation of a 64-bit long into an int variable.

I'll attach patches for RC2 and 3.5 branch
Comment 1 Mark Davies 2007-12-27 21:47:29 UTC
Created attachment 22712 [details]
4.0RC2 patch for 64bit issue in nspluginviewer
Comment 2 Mark Davies 2007-12-27 21:48:52 UTC
Created attachment 22713 [details]
3.5 branch patch for 64bit issue in nspluginviewer
Comment 3 Maksim Orlovich 2007-12-27 22:00:18 UTC
Thanks for the patch, good catch, but... that file isn't used in 4.0, so I would be highly surprised if it helped things.
Comment 4 Mark Davies 2007-12-28 05:05:47 UTC
> Thanks for the patch, good catch, but... that file isn't used in 4.0, so I
> would be highly surprised if it helped things. 
 
Fine, the problem was actually found on 3.5.8 and then observed that the same code existed in 4.0rc2, so should at least get fixed on the 3.5 branch.

cheers
mark
Comment 5 Lubos Lunak 2008-01-07 17:05:12 UTC
SVN commit 758319 by lunakl:

Fix 64bit problem.
BUG: 154713



 M  +5 -5      qxteventloop.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=758319