Bugs item #1695735, was opened at 2007-04-06 19:16 Message generated for change (Comment added) made by dooglus You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1695735&group_id=144022
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: dooglus (dooglus) Assigned to: Nobody/Anonymous (nobody) Summary: core dump outputting to file called '-h' Initial Comment: $ synfig -o -h file.sif Segmentation fault Seems it's getting confused between flags and non-flags. The thing after -o should be treated as a filename - and "-h" is a valid, although somewhat strange, filename. "synfig -o -z blank2.sif" doesn't crash - it saves the output to a file called '-z' as expected. ---------------------------------------------------------------------- >Comment By: dooglus (dooglus) Date: 2008-01-17 19:11 Message: Logged In: YES user_id=1546005 Originator: YES Fixed in svn r1397. ---------------------------------------------------------------------- Comment By: dooglus (dooglus) Date: 2007-04-06 19:24 Message: Logged In: YES user_id=1546005 Originator: YES The problem is that in synfig-core/src/tool/main.cpp, extract_RendDesc() runs first, scanning through all the arguments for -h, and then extract_outfile() runs, and scans for -o. There's no effort to distinguish flags from non-flags. The code which finds the "-h" then tries to delete the argument following the -h (where the height should be) but the -h is the last remaining argument (the .sif argument has already been deleted) and so it crashes. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=757416&aid=1695735&group_id=144022 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl