Menu

#127 cilly does not parse link output file name correctly

Bug
closed-fixed
nobody
None
5
2012-05-29
2012-03-08
Anonymous
No

Cilly has a bug in the regular expression that parses the output file name used to link. This bug prevents single character output file names from being used.

The patch is very simple:

--- Cilly.pm.in (revision 10399)
+++ Cilly.pm.in (working copy)
@@ -2200,7 +2200,7 @@

sub linkOutputFile {
my($self, $src) = @_;
- if(defined $self->{OUTARG} && "@{$self->{OUTARG}}" =~ m|-o\s*(\S.+)|) {
+ if(defined $self->{OUTARG} && "@{$self->{OUTARG}}" =~ m|-o\s*(\S+)|) {
return $1;
}
return "a.out";

Discussion

  • Gabriel Kerneis

    Gabriel Kerneis - 2012-05-29

    Thanks for the report, patch applied.

     
  • Gabriel Kerneis

    Gabriel Kerneis - 2012-05-29
    • status: open --> closed-fixed
     

Log in to post a comment.