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: Open Resolution: None 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: 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl