2017-04-18 07:52:04 +08:00
|
|
|
## EventListener truncates strings with embedded nulls
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Scope
|
|
|
|
Edge
|
|
|
|
|
|
|
|
### Version Introduced
|
|
|
|
4.5.1
|
|
|
|
|
|
|
|
### Source Analyzer Status
|
|
|
|
Available
|
|
|
|
|
|
|
|
### Change Description
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
<xref:System.Diagnostics.Tracing.EventListener?displayProperty=name> truncates
|
|
|
|
strings with embedded nulls. Null characters are not supported by the
|
|
|
|
<xref:System.Diagnostics.Tracing.EventSource?displayProperty=name> class. The
|
|
|
|
change only affects apps that use
|
|
|
|
<xref:System.Diagnostics.Tracing.EventListener?displayProperty=name> to read
|
|
|
|
<xref:System.Diagnostics.Tracing.EventSource?displayProperty=name> data in
|
|
|
|
process and that use null characters as delimiters.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
- [ ] Quirked
|
|
|
|
- [ ] Build-time break
|
|
|
|
|
|
|
|
### Recommended Action
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
<xref:System.Diagnostics.Tracing.EventSource?displayProperty=name> data should
|
|
|
|
be updated, if possible, to not use embedded null characters.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Affected APIs
|
|
|
|
* `M:System.Diagnostics.Tracing.EventListener.#ctor`
|
|
|
|
* `M:System.Diagnostics.Tracing.EventListener.EnableEvents(System.Diagnostics.Tracing.EventSource,System.Diagnostics.Tracing.EventLevel)`
|
|
|
|
* `M:System.Diagnostics.Tracing.EventListener.EnableEvents(System.Diagnostics.Tracing.EventSource,System.Diagnostics.Tracing.EventLevel,System.Diagnostics.Tracing.EventKeywords)`
|
|
|
|
* `M:System.Diagnostics.Tracing.EventListener.EnableEvents(System.Diagnostics.Tracing.EventSource,System.Diagnostics.Tracing.EventLevel,System.Diagnostics.Tracing.EventKeywords,System.Collections.Generic.IDictionary{System.String,System.String})`
|
|
|
|
|
|
|
|
### Category
|
|
|
|
Core
|
|
|
|
|
2017-04-18 07:52:04 +08:00
|
|
|
<!-- breaking change id: 46 -->
|