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 347914 - gparted crashes if xfs_db fails
gparted crashes if xfs_db fails
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
GIT HEAD
Other Linux
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2006-07-18 13:24 UTC by Colin Watson
Modified: 2006-07-19 17:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
check find() return value before passing to substr() (434 bytes, patch)
2006-07-18 13:26 UTC, Colin Watson
none Details | Review

Description Colin Watson 2006-07-18 13:24:22 UTC
If xfs_db fails (as happened in https://launchpad.net/distros/ubuntu/+source/gparted/+bug/50909) then gparted crashes too with an exception in basic_string::substr. I'll attach a patch in a moment to fix this.
Comment 1 Colin Watson 2006-07-18 13:26:03 UTC
Created attachment 69111 [details] [review]
check find() return value before passing to substr()

This follows the same style as is used in the other filesystem implementations.
Comment 2 Plors (Bart H) 2006-07-19 17:30:04 UTC
in CVS, thanks for reporting. :)