Bug 154713 - LP64 problem in nspluginviewer
Summary: LP64 problem in nspluginviewer
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: nsplugins (show other bugs)
Version: unspecified
Platform: NetBSD pkgsrc NetBSD
: NOR crash
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 21:45 UTC by Mark Davies
Modified: 2022-08-30 13:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
4.0RC2 patch for 64bit issue in nspluginviewer (367 bytes, patch)
2007-12-27 21:47 UTC, Mark Davies
Details
3.5 branch patch for 64bit issue in nspluginviewer (403 bytes, patch)
2007-12-27 21:48 UTC, Mark Davies
Details

Note You need to log in before you can comment on or make changes to this bug.
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