Summary: | media-gfx/xfig-3.2.5b-r2 segfaults in Edit menu | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernardo Costa <bernardofpc> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, HAJEK1, tomka |
Priority: | Normal | Keywords: | PATCH |
Version: | 10.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 472340 | ||
Attachments: | Intermediate conversions to intptr_t before casting to pointers |
Description
Bernardo Costa
2012-04-20 08:31:46 UTC
Created attachment 309603 [details, diff]
Intermediate conversions to intptr_t before casting to pointers
I made this patch with a lot of "(intptr_t)", trying to get saner conversions. As it turned out, I also needed to get a XAW_INTERNATIONALIZATION defined for e_edit.c to properly compile, so I put it altogether so that people with up to date xaw3d can directly test.
It corrected the bug on the edit menu for me, but of course this kind of conversion could have even subtler side-effects...
+ 04 Mar 2013; Christoph Junghans <ottxor@gentoo.org> + +files/xfig-3.2.5b-darwin.patch, +files/xfig-3.2.5b-edit-menu.patch, + +files/xfig-3.2.5b-solaris.patch, +xfig-3.2.5b-r3.ebuild: + fixed bugs #412753 and #405475, added prefix support Guys, although but is fixed here is a heads up as I'm going to drop this patch. Reasons are: 1. I don't understand why this change of types even needed. After reading these threads http://stackoverflow.com/questions/6326338/why-when-to-use-intptr-t-for-type-casting-in-c http://stackoverflow.com/questions/9492798/using-intptr-t-instead-of-void I understand that "intptr_t is really for the rare occasions that you have to interpret pointers as integers (which they really aren't). Don't that if you mustn't." 2. I failed to reproduce bug and I'm not sure how this patch fixes it. So in xfig-3.2.5c I've dropped it. As I read changelog other crashes where fixed there, so, please, could you try xfig-3.2.5c and report if this problem still exits? |