File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ class SentryNativeCocoa extends SentryNativeChannel {
58
58
FutureOr <void > captureEnvelope (
59
59
Uint8List envelopeData, bool containsUnhandledException) {
60
60
// Use a safe copy-based conversion to avoid double-free issues observed
61
- // when relying on `dataWithBytesNoCopy:length:freeWhenDone:`. Although
62
- // this involves an additional copy, it prevents the EXC_BAD_ACCESS
63
- // crash caused by Cocoa freeing the buffer twice.
61
+ // when relying on `dataWithBytesNoCopy:length:freeWhenDone:`.
64
62
final length = envelopeData.length;
65
63
final ptr = malloc <Uint8 >(length);
66
64
ptr.asTypedList (length).setAll (0 , envelopeData);
Original file line number Diff line number Diff line change @@ -254,7 +254,9 @@ void main() {
254
254
await sut.captureEnvelope (data, false );
255
255
256
256
expect (captured, data);
257
- });
257
+ },
258
+ skip:
259
+ (Platform ().isAndroid || Platform ().isIOS || Platform ().isMacOS));
258
260
259
261
test ('loadContexts' , () async {
260
262
when (channel.invokeMethod ('loadContexts' ))
You can’t perform that action at this time.
0 commit comments