After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 122703 - Print manager crashes when a file in /bin is selected for icon
Print manager crashes when a file in /bin is selected for icon
Status: RESOLVED FIXED
Product: libgnomeui
Classification: Deprecated
Component: general
unspecified
Other Solaris
: High major
: future
Assigned To: libgnomeui maintainers
libgnomeui maintainers
Depends on:
Blocks:
 
 
Reported: 2003-09-19 07:16 UTC by Vijaykumar Patwari
Modified: 2005-09-21 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch fixes the bug. (947 bytes, patch)
2003-09-19 07:32 UTC, Vijaykumar Patwari
reviewed Details | Review

Description Vijaykumar Patwari 2003-09-19 07:16:11 UTC
1. Print manager crashes

1. Open print manager Applications -> System Tools -> Print Manager
2. Right-click on a printer icon and select "Properties"
3. Select "Browse" button to select an icon for the printer
4. Select any file in /bin directory, Say "ControlPanel"

Result: Print manager crashes

Expected output: Print manager should not crash. 
Print manager should display a message on selecting a file of improper
format.
Comment 1 Vijaykumar Patwari 2003-09-19 07:32:39 UTC
Created attachment 20079 [details] [review]
This patch fixes the bug.
Comment 2 Kjartan Maraas 2003-09-19 16:24:23 UTC
High for patch and new keywords. Is anyone (Sun?) using the
GNOMEVER2.2 stuff still?
Comment 3 Vijaykumar Patwari 2004-03-03 04:47:43 UTC
Kjartan Maraas: Sorry for the late response :), we are using GNOME 2.2
for JDS.
Comment 4 Kjartan Maraas 2005-05-11 09:49:47 UTC
It doesn't crash here with Linux. Is this crash Solaris specific? How does
testing  to make sure it's not a directory help really? Please explain further.
I just get a warning that the image is corrupt etc.
Comment 5 Kjartan Maraas 2005-08-30 13:25:07 UTC
Vijaykumar? Still there?
Comment 6 Vijaykumar Patwari 2005-08-30 13:55:35 UTC
Kjartan:

   This crash is only seen on solaris, AFAIK, When a /bin is entered in text
entry and ok is pressed in properties dialog , printer_properties_response_cb is
called, which passes /bin gdk_pixbuf_new_from_file() function, were there is
every possibility that header data accidentally matches with that of vaild image
files. The header of /bin matches with the header of some image file, further,
function get_contiguous_pixbuf() is called where floating point error occures,
because of 'division by zero', which leads to the crash. So a check was made to
make sure that symlink passed is not a directory.
Comment 7 Kjartan Maraas 2005-09-21 10:15:55 UTC
Commiting this. Thanks.