-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure allocated objects are fully initialized (e.g. ObjC blocks) #224
Labels
Comments
I believe you're looking for #233. |
It doesn't explain why The code seems to allocate an ObjC block (without initializing |
I was assuming that the allocated memory is zero initialized. I'll fix it. |
HosseinYousefi
pushed a commit
that referenced
this issue
Nov 16, 2023
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 1.2.4 to 2.0.0. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](coverallsapp/github-action@50c33ad...67662d2) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
HosseinYousefi
pushed a commit
that referenced
this issue
Nov 16, 2023
Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 1.2.4 to 2.0.0. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](coverallsapp/github-action@50c33ad...67662d2) --- updated-dependencies: - dependency-name: coverallsapp/github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From looking at the examples (e.g. example/objective_c/avf_audio_bindings.dart):
as well as the generator in lib/src/code_generator/objc_built_in_functions.dart
It seems that for
flags
field of an ObjC block isn't initializedThe memory allocation will leave the contents of memory as uninitialized, yet those (uninitialized) flags will influence how the block is e.g. copied, etc.
/cc @liamappelbe Was it intentional to not initialize
flags
?The text was updated successfully, but these errors were encountered: