Re: RFR: 8304441: [macos] Crash when putting invalid unicode char on clipboard

2023-04-05 Thread Andy Goryachev
On Tue, 28 Mar 2023 15:09:29 GMT, Kevin Rushforth wrote: > A malformed unicode string containing only half of a surrogate pair (either a > high or low surrogate without the other half) will cause a native exception > in the macOS `NSPasteboardItem setString:forType:` method. This uncaught > ex

Re: RFR: 8304441: [macos] Crash when putting invalid unicode char on clipboard

2023-04-05 Thread Kevin Rushforth
On Tue, 28 Mar 2023 15:09:29 GMT, Kevin Rushforth wrote: > A malformed unicode string containing only half of a surrogate pair (either a > high or low surrogate without the other half) will cause a native exception > in the macOS `NSPasteboardItem setString:forType:` method. This uncaught > ex

Re: RFR: 8304441: [macos] Crash when putting invalid unicode char on clipboard

2023-04-03 Thread Phil Race
On Tue, 28 Mar 2023 15:09:29 GMT, Kevin Rushforth wrote: > A malformed unicode string containing only half of a surrogate pair (either a > high or low surrogate without the other half) will cause a native exception > in the macOS `NSPasteboardItem setString:forType:` method. This uncaught > ex

RFR: 8304441: [macos] Crash when putting invalid unicode char on clipboard

2023-03-28 Thread Kevin Rushforth
A malformed unicode string containing only half of a surrogate pair (either a high or low surrogate without the other half) will cause a native exception in the macOS `NSPasteboardItem setString:forType:` method. This uncaught exception will terminate (crash) the application. The fix is to vali