icsharpcode / SharpDevelop

#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
2.09k stars 773 forks source link

StackOverflowException possible #597

Closed michmela44 closed 9 years ago

michmela44 commented 9 years ago

The getter in CurrentLineHighlightRenderer.cs, line 26 returns itself, which will cause a StackOverflowException

public int Line { 
    get { return this.Line; }  
    set { 
        if (this.line != value) { 
            this.line = value; 
            this.textView.InvalidateLayer(this.Layer); 
        } 
    } 
}