Overflow when coercing arguments crashes MSBuild
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Steps to reproduce
Project file
```xml
-2010
```
Stack:
```
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.OverflowException: Value was either too large or too small for a signed byte.
at System.SByte.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.String.System.IConvertible.ToSByte(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Microsoft.Build.Evaluation.Expander`2.Function`1.CoerceArguments(Object[] args, ParameterInfo[] parameters)
at Microsoft.Build.Evaluation.Expander`2.Function`1.LateBindExecute(Exception ex, BindingFlags bindingFlags, Object objectInstance, Object[] args, Boolean isConstructor)
at Microsoft.Build.Evaluation.Expander`2.Function`1.Execute(Object objectInstance, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation)
...
at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
Unhandled Exception: System.OverflowException: Value was either too large or too small for a signed byte.
...
at Microsoft.Build.CommandLine.MSBuildApp.Main()
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.