Skip to content

Commit

Permalink
Merge branch 'release/0.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed Jun 4, 2022
2 parents 4c2d283 + fa5d0b8 commit 2fe1f4b
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 980 deletions.
7 changes: 7 additions & 0 deletions dart_native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
## 0.7.1

* [Fix] Leaks on iOS.

## 0.7.0

* [Feature] Support DartNative Interface.
* [Feature] Support Finalizer.

## 0.6.8

* [Fix] Leaks on iOS.

## 0.6.7

* [Fix] Deadlocks on iOS.
Expand Down
2 changes: 1 addition & 1 deletion dart_native/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.7.0"
version: "0.7.1"
dart_native_gen:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions dart_native/ios/Classes/native_runtime.mm
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ bool native_isValidReadableMemory(const void *pointer) {
}

// Read the memory
vm_offset_t data = 0;
mach_msg_type_number_t dataCnt = 0;
ret = vm_read(mach_task_self(), (vm_address_t)pointer, sizeof(uintptr_t), &data, &dataCnt);
char data[sizeof(uintptr_t)];
vm_size_t dataCnt = 0;
ret = vm_read_overwrite(mach_task_self(), (vm_address_t)pointer, sizeof(uintptr_t), (vm_address_t)data, &dataCnt);
if (ret != KERN_SUCCESS) {
// vm_read returned an error
return false;
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions dart_native/macos/Classes/native_runtime.mm
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ bool native_isValidReadableMemory(const void *pointer) {
}

// Read the memory
vm_offset_t data = 0;
mach_msg_type_number_t dataCnt = 0;
ret = vm_read(mach_task_self(), (vm_address_t)pointer, sizeof(uintptr_t), &data, &dataCnt);
char data[sizeof(uintptr_t)];
vm_size_t dataCnt = 0;
ret = vm_read_overwrite(mach_task_self(), (vm_address_t)pointer, sizeof(uintptr_t), (vm_address_t)data, &dataCnt);
if (ret != KERN_SUCCESS) {
// vm_read returned an error
return false;
Expand Down
Loading

0 comments on commit 2fe1f4b

Please sign in to comment.